Write a c-program to check if a student has equal, more or less mark than his friend.
Answers
Answered by
0
Answer:(Please mark as Brainliest)
Given Below:
Program:
#include<iostream.h>
#include<conio.h>
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<x)
{
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();
}
Similar questions