//Normal program
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter No to multiply: ");
scanf("%d %d",&a,&b);
c=a*b;
printf("Multiplication Result= %d",c);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=10;
printf("%d",a*b);
getch();
}
outout:200
//Ask numbers from user to Multiply
#include<stdio.h>#include<conio.h>
void main()
{
int a,b,c;
printf("Enter No to multiply: ");
scanf("%d %d",&a,&b);
c=a*b;
printf("Multiplication Result= %d",c);
getch();
}
No comments:
Post a Comment