Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

1. Write a C program to enter two numbers and perform all arithmetic operations.
2.
1. Write a C program to enter temperature in Celsius and convert it into Fahrenheit.
3.
1. Write a C program to enter temperature in Fahrenheit and convert to Celsius
4.
1. Write a C program to find power of any number x ^ y.
5.
1. Write a C program to enter any number and calculate its square root.
6. Write a C program to enter marks of five subjects and calculate
total, average and percentage.
7.
1. Write a C program to enter P, T, R and calculate Compound Interest.
8. Write a C program to find maximum between three numbers using
conditional operator
9. Write a C program to check whether a number is even or odd
using conditional operator.
10. Write a C program to check whether year is leap year or not
using conditional operator
11. Write a C program to check whether character is an
alphabet or not using conditional operator.
12. WAP in C to show the working of ‘size of’ operator.
13. WAP in C to show the working of \n and \t.
14. WAP in C to print the ASCII value of any character entered by the user.
15. WAP in C to bitwise AND operator between the two integers.
16. WAP in C to show the working of ternary operators or conditional operator
17. WAP in C to swap two numbers without using third variable.
18. WAP in C to swap numbers with using third variable
19. WAP in C to use switch statement. Display Monday to Sunday.
20. WAP in C to print ASCII value of all digits using goto statement.
21. WAP in C to print a name 10 times using goto statement.
22. UNIT 3…..NEXT

List of C programs of Unit 5


23. Write a program to initialize the 1D array and 2D array.
24. Write a program to print the sum of array elements.
25. Write a program to perform the mathematical operations on array elements.
26. Write a program to print the transpose of a matrix.
27. Write a program to print diagonal elements of array.

List of C programs of Unit 6


28. Write a program to create a file.
29. Write a program to perform read and write operation on the file.
30.

You might also like