Sunday, 28 September 2014

A Program To Run Basic If Statement


Source Code:

#include <stdio.h>
#include <conio.h>
// A Program To Run Basic If Statement By....Akshay...
void main()
{
int n;
clrscr();
printf("\n Enter value of n = ");
scanf("%d",&n);
if (n%2==0)
printf("\n No is even.");
getch();

After writing the source code save with extension .CPP

Output:


No comments :

Post a Comment