Search This Blog

July 10, 2014

Write a Program to check whether a Number is exactly divisible by 3 or not

#include <stdio.h>
#include <conio.h>
int main( )
{
int x;
printf("Enter a number");
scanf("%d",&x);
if(x%3==0)
{


printf("%d is Exactly divisiable by 3 ",x);
      }
else
{

printf("%d is not Exactly divisiable by 3",x);
      }
getch ( );
return 0;
}

No comments:

Post a Comment

Earn Money From Home