Saved Bookmarks
| 1. |
Write a c-program to check if a student has equal, more or less mark than his friend. |
|
Answer» Answer:(PLEASE mark as Brainliest) GIVEN Below: Program: #include #include void main() { CLRSCR(); int number,x; cout<<"\N Enter your marks";CIN>>x; cout<<"\n Please enter your friend's marks";cin>>number; if (number { cout<<"\n Your marks are more than your friend."; } else if (number==x) { cout<<"\n Both of your and your friend's marks are equal."; } else { cout<<"\n Your marks are less than your friend."; } getch(); } |
|