Saturday, 10 December 2011

Write a program to multiplication in c

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



OUTPUT
ENTER NO A:15
ENTER NO B:10
MULT=150

No comments:

Post a Comment