We Post only the Best Stuff

Check whether a no. is divisible by other or not

Previous Program »» C Program to check Leap Year

The coding of this program is quite simple. It goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b;
printf("Enter the Dividend: ");
scanf("%d",&a);
printf("Enter the Divisor: ");
scanf("%d",&b);
if (a%b==0);
{
printf("%d is divisible by %d",b,a);
}
else
{
printf ("%d is not divisible by %d",b,a);
}
getch();
}
Next Program »» C Program to Convert Foots to Centimeters



For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger