Professional Documents
Culture Documents
Coding Questions
Coding Questions
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