Monday, November 29, 2010

how to write a program for Division of any two number in C-programing ?

#include
#include

main()
{
int a,b,c;
clrscr();
printf("\n\n\t\t\t\t* DIVISION *");
printf("\n\n\n\tEnter any number :\t");
scanf("%d",&a);
printf("\n\tEnter any number :\t");
scanf("%d",&b);
c=a/b;
printf("\n\t Division \t :\t%d",c);
getch();
}


No comments:

Post a Comment