Thursday, July 28, 2011

Check whether the number is multiple of 5

#include<stdio.h>
void main()

{
int num;
clrscr();
printf("Enter a Number : ");
scanf("%d",&num);
if((num%5)==0)
  printf("\n%d is a multiple of five");
else
  printf("\n%d is not a multiple of five");
getch();
}

0 comments:

Post a Comment