Wednesday, 30 September 2015

C Program to use of if...else statement



/*C Program to use of if...else statement*/
#include<stdio.h>
main()
{
      int marks;
      printf("Enter your mark  ");
      scanf("%d",&marks);
      if(marks>=40)
      {
           printf("congratulations....you are passed");
      }
      else
      {
           printf("Better Luck Next Time.....you are failed");
      }
}
 

No comments:

Post a Comment