228k views
5 votes
write a program asking for the user to input his name and marks in computer. If marks are greater than 40,then display a message saying you have passed in computer. otherwise you display you have failed in computer. ​

User Amos Batto
by
3.3k points

1 Answer

3 votes

Answer: We can enter the mark into our c program and the script will try to find out the grade by using a series of else if condition checking. Each if else condition checks for a mark for a particular grade and if it is TRUE then all other checkings ( else if ) are omitted.

Getting the Grade by using input mark in C programming by using if else condition check

User Adesola
by
3.7k points