MULTIPLICATION OF TWO NUMBERS:
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("\nEnter two numbers to multiply: \n");
scanf("%d%d",&a,&b);
c=a*b;
printf("THE RESULT OF MULTIPLICATION IS %d",a,b);
getch();
}
OUTPUT:
ENTER TWO NUMBERS TO MULTIPLY: 2 3
THE RESULT OF MUTIPLICATION IS 5
EXPLANATION:
THIS PROGRAM IS USED TO MULTIPLY TWO NUMBERS.
OPERATORS:
(*)
OPERANDS:
A,B, AND C.
No comments:
Post a Comment