Saturday, 10 December 2011

Write a program to division in c

#include
#include
main()
{
int a,b,div;
clrscr();
printf("ENTER NO.A:-");
scanf("%d",&a);
printf("ENTER NO.B:-");
scanf("%d",&b);
div=a/b;
printf("\n\t division=%d",div);
getch();
}


OUTPUT
ENTER NO A:20
ENTER NO B:4
DIVISION=5

No comments:

Post a Comment