Tuesday, 18 October 2011

Conditional (GRADE)

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


    p("Enter Grade of Student: ");
    s("%d",&grade);
   
    if(grade >= 60)
    p("You Pass It!!");
    else
    p("Sorry you failed!");
    getch();
    return 0;
}

0 comments:

Post a Comment