10th (Suggested Practical’s)
2. Write a program which uses all types of variables and print their output.
3. Write a program to print formatted output using escape sequences.
4. Write a program to print the sum and product of two integers and floats.
5. Write a program to print the difference and division of two floats.
6. Write a program to print the use modulus operator on integers.
7. Write a program to print the sum and average of three floats.
8. Write a program to print the cube of a number (float)
9. Write a program to print the area of a rectangle
10. Write a program to print the area of a triangle when three sides are given.
11. Write a program to print the area and circumference of a circle.
12. Write a program to print the area and perimeter of a square when one side is given
13. Write a program to print the volume of a cylinder
14. Write a program to print the surface area and volume of a cube.
15. Write a program to convert the temperature from centigrade to Fahrenheit
16. Write a program to convert the temperature from Fahrenheit to centigrade
17. Write a program to print the distance covered by a car having an average speed.
18. Write a program which asks the name; roll number, class, section and marks in different subjects of a student of class 10. The program should calculate and display total obtained marks and percentage of the student.
19. Write a program that takes a number as input and displays whether it is even or odd.
20. Write a program that takes three numbers as input and displays the largest among them.
21. Write a program that takes a number as input and prints an error message if the number is not 1 or 2.
22. Write a program that takes three integers as input and displays the largest two.
23. Write a program that prints the grade of a student.
24. Write a program that prints first 10 integers using for loop.
25. Write a program that prints even numbers from 1 to 10
26. Write a program that prints odd numbers from 1 to 10
27. Write a program that takes a number as an input and prints its multiplication table up to 10.
28. Write a program that takes a number as an input from the user and prints its factorial
29. Write a program that takes two numbers as input and prints the multiplication table of the first number up to the second number.
30. Write a program that prints integers from 10 to 1 (reverse order, using loop).
31. Write a program that takes input “n” from the user and prints the sum of first “n” numbers and their average.
32. Write a program that takes a number “n” as input from the user and prints the first “n”
numbers of Fibonacci series.
33. Write a program that takes a number “n” as input from the user and prints triangle of stars, having rows equal to “n”.
34. Write a program that creates an array and initializes it with first 10 integers and displays them on screen, using loop.
35. Write a program that takes few numbers as input from the user and prints them in reverse order.
36. Write a program that takes few numbers as input from the user and prints the minimum and maximum among them.
37. Write a program that takes 10 numbers as input from the user and print all the odd ones.
38. Write a program that takes a number as input and prints its binary representation.
39. Write a program that takes input from the user. The program passes the input it to a function which converts it into its ASCII and returns it back to the main function. The main function prints the ASCII of the number.
40. Write a program that can take maximum 20 characters from the user. The program saves these characters in an array and prints them on the screen as the user is typing. (use getch() and printf() with loop and array)
41. Write a program that can take maximum 20 characters from the user as his password. The program does not print them on the screen when the user is typing. The program then encrypts the password using Caesar cipher and prints it on the screen. (Pressing enter will terminate the input)
42. Write a program takes two numbers as input from the user and then passes them to a function named sum. The function returns the sum of the numbers and the main function prints the output.
43. Write a program that takes two numbers “m” and “n” as input from the user, then passes them to a function. The function calculates “m” to the power of “n” and returns the value to the main function. The main function prints the value on screen.
44. Write a program that takes few numbers as input from the user, and then stores them in an array and passes that array to a function. The function sorts that array. The main function prints the sorted array in ascending order.
45. Write a program that takes two numbers as input and passes them to a function. The function calculates the GCD of the numbers using Euclidean algorithm, and returns to the main function. The main function prints the GCD.
46. Write a program that takes a 5 digit integer using scanf() as input from the user and reverses its presentation. For example, “54321” will become “12345”.
47. Write a program that takes inputs from the user and performs the basic arithmetic operations on them using a modular approach. (A simple calculator).
48. Write a program that takes hourly rate and the number of hours of 10 different employees, from the user. The program then calculates the salary of each employee and prints them on screen (use modular approach).
49. Write a program that can take maximum 20 characters from the user and returns whether the input is a palindrome or not.
50. Write a program that takes an integer as input from the user and prints whether the integer is prime or not.












