A c++ program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise.
Answers
Answered by
2
void CHECKPASSFAIL (int mark)
{
if (mark>=50)
{cout<<"PASS";}
else
{cout<<"FAIL";}
}
int main()
{
int mark;
cout<<"Enter mark :";
cin>>mark;
CHECKPASSFAIL(mark);
return 0;
}
Similar questions