The document lists 18 programming problems for a computer programming lab, including writing programs to print "Hello", calculate a square root, swap variable values, check for prime and even numbers, calculate factorials, and perform arithmetic operations on integers. It involves basic programming concepts like variables, conditionals, loops, arrays, and mathematical operations.
The document lists 18 programming problems for a computer programming lab, including writing programs to print "Hello", calculate a square root, swap variable values, check for prime and even numbers, calculate factorials, and perform arithmetic operations on integers. It involves basic programming concepts like variables, conditionals, loops, arrays, and mathematical operations.
The document lists 18 programming problems for a computer programming lab, including writing programs to print "Hello", calculate a square root, swap variable values, check for prime and even numbers, calculate factorials, and perform arithmetic operations on integers. It involves basic programming concepts like variables, conditionals, loops, arrays, and mathematical operations.
1. Write a program to print “Hello” word on the screen.
2. Write a program to calculate squire root of a given number. 3. Write a program to swap values of two integer variables. 4. Write a program to enter marks in 3 subjects out of 100 each and display result with percentage 5. Write a program to check a given number is even or odd. 6. Write a program to display ASCII code of given character. 7. Write a program to check that a given year is leap year or not. 8. Write a program to display numbers between 1 to n. 9. Write a program to display numbers from n to 1 on the screen. 10. Write a program to print table of given number 11. Write a program to print only even numbers between 1 to n 12. Write a program to check number whether a given number is prime or not. 13. Write a program to display number between 1 to n, they must be divisible by 3 and 5. 14. Write a program to arithmetic operation on given integers. Drive a menu to presents choice between these operations. 15. Write a program to print 1 to n number they must be divisible by 5 by using continue statement. 16. Write a program to calculate factorial of given number. 17. Write a program to calculate factorial of given number by using goto statement. 18. Write a program to enter 10 elements in an array and calculate sum of these number.