0% found this document useful (0 votes)
2 views4 pages

Program Using If Else

Uploaded by

amansd349
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Program Using If Else

Uploaded by

amansd349
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Program using if else

[Link] a C program to find maximum between two numbers.


[Link] a C program to find maximum between three numbers.
[Link] a C program to check whether a number is negative, positive or zero.
[Link] a C program to check whether a number is divisible by 5 and 11 or not.
[Link] a C program to check whether a number is even or odd.
[Link] a C program to check whether a year is leap year or not.
[Link] a C program to check whether a character is alphabet or not.
[Link] a C program to input any alphabet and check whether it is vowel or consonant.
[Link] a C program to input any character and check whether it is alphabet, digit or special character.
10. Write a C program to check whether a character is uppercase or lowercase alphabet
11. Write a C program to input week number and print week day
12. Write a C program to input month number and print number of days in that month.
13. Write a C program to input angles of a triangle and check whether triangle is valid or not.
14. Write a C program to input all sides of a triangle and check whether triangle is valid or not.
15. Write a C program to check whether the triangle is equilateral, isosceles or scalene triangle.
16. Write a C program to find all roots of a quadratic equation
17. Write a C program to calculate profit or loss.
18. Write a C program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and
Computer. Calculate percentage and grade according to following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
C Program to Find ASCII Value of a Character and vice versa

You might also like