Assignment Day-2
1. Write a C program to swap two numbers:
a) Using an extra memory variable.
b) Without using any extra memory variable.
The numbers are taken as input from the user.
2. Write a C program to compute quotient and remainder of two
integer variables.
3. Write a C program to find the Celsius equivalent of Fahrenheit
temperature.
4. Write a program to compute grade of n students in a subject. The
grades are assigned as follows:
Marks Grade
marks<50 F
50≤marks<60 C
60≤marks<70 B
70≤marks<80 B+
80≤marks<90 A
90≤marks<100 A+
5. Write a program to check whether a date is valid or not.
Comments
Post a Comment