Oops
Oops
Write a program to check whether the given number ‘N’ is positive or not using
if…else statement.
2. Write a program to input the Score value at run-time and display the Grade as
‘A’ when the Score is more than 90, and then to notify the termination of the
program by printing the statement “***End of the Program***” on console.
AwardPoints = 1 AwardPoints = 12
4. Assume that you are going to create a program which allows the user to read
some set of integers until the user enters ‘0’ and then count and add the negative
integers and display the same on the console.(using while loop)
Test Case :
-1
-5
5. Write a C program to accept two integers and check whether they are equal or
not.
6. Write a C program to read the value of an integer m and display the value of n is
1 when m is larger than 0, 0 when m is 0 and -1 when m is less than 0.
Test Case :
-1
-5