Cse 174
Cse 174
AE-15
Problems:
1. Write a C program to change the Color of the text and the
output box.
2. Write a C program to find addition, subtraction,
multiplication and subtraction of two numbers.
3. Write a C program to get an output of int, float type data .
a) Without using scanf
b) Using scanf (for float type using 4 digit, 3 digit after decimal
point)
4. Write a C program to print the ASCII value of a character.
5. Write a C program using char type data.
6. Write a C program to find the sum of the digits of a 4 digit
number.
7. Write a C program to find the average of multiple numbers.
8. Write a C program to find the volume of a sphere.
9. Write a C program to solve linear and quadratic equation.
10. Write a C program to print all odd numbers between 1 to
100.
11. Write a C program to print the last digit of a number.
12. Write a C program to determine leap year .
13. Write a C program to find the smallest and greatest number
of the given numbers using conditional operator.
14. Write a C program to execute these relations:
(a==b)&&(c>b)
(a==b)&&(c<b)
(a==b)||(c<b)
(a!=b)||(c<b)
!(a!=b)
!(a==b)
15. Write a C program to determine grades.
16. Write a C program to determine positive, negative and zero
numbers.
17. Write a C program to print all the alphabets from A to Z
(uppercase and lowercase)
18. Find the area of a triangle (Value of the sides are given)
19. Write a C program to print last 2 digits of a year.
20. Write a C program to swap two numbers.