C prog Solution Q1-Q22-yearly assignment
C prog Solution Q1-Q22-yearly assignment
a.
b)
c)
2. Write a C program to assign a values to two variables and display them.
values of thesevariables.
Write a C program to accept a numbers from user and display which number is
Positive, negative or neutral.
14.Write a C program to accept two numbers from user and display which
number is greater.
15.Write a C program to accept two numbers from user and display whether
they are equal or not.
21.Write a C program to accept three numbers from the user and display
smallest number.
22.Write a C program to calculate and display discount on the amount based on
following
a) If amount is <100 No discount
b) If amount>100 and <=200 discount=15%
c) If amount>200 and <=300 discount=21%
d) If amount>300 discount=33%