Pages

Wednesday, October 12, 2011

failed and passed!

#include<stdio.h>
#include<conio.h>
#define p printf
#define s scanf
int grade;
int main()
{


    p("Enter student grade:");
    s("%d",&grade);
    if(grade >= 60)
    p("Congratulations you PASSED!");
    else
    p("Sorry you FAILED!");
    getch();
    return 0;
}

No comments:

Post a Comment