Marks Grade
100-80 Distinction
79-60 First class
59-40 Second class
< 40 Fail
Program to calculate grade according to marks:
Grade mark in c program:
Write a program to read marks from keyboard and your program should display equivalent grade according to following table (if else ladder).
Write a C program to input a character from user and check whether given character is alphabet, digit or special character using if else. How to check if a character is alphabet, digits or any other special character using if else in C programming. Logic to check alphabet, digit or special character in C programming.
Write a C program to find maximum between three numbers using nested if else or nested if. How to find maximum or minimum between three numbers using if else in C programming. Logic to find maximum or minimum between three numbers in C program.
Write a c program to find the largest number among three numbers. You will learn to find the largest number among three numbers.
C program to check student is pass or fail:
The C program to display student results demonstrates the working of conditional statement in the C language.
Write a C program to check positive, negative or zero using simple if or if else. C program to input any number from user and check whether the given number is positive, negative or zero. Explain, how to find that the accepted number is negative, positive or zero in C programming.
Calculate total distance traveled by a vehicle in ' t ' seconds is given by distance.
Formula of distance:
d = ut+at^2
Where, ' u ' is the initial velocity ( meter per second ), ' a ' is the acceleration. Write a program to evaluate the distance travelled at regular intervals of time, given the value of ' u ' and ' a '. The program should provide the flexibility to the user to select his own time intervals and repeat the calculations for different values of ' u ' and ' a '.
Given below is a C program to find out distance travelled by the upper equation: