Thursday, May 19, 2016

A program for multiplication of two numbers

Program
#include<stdio.h>
main()
{
int a,b,product;
printf("enter the values of a and b: \n");
scanf("%d%d",&a,&b);
product=a*b;
printf("product is:%d",product);
}

Output
enter the values of a and b:
3 5
product is:15

No comments:

Post a Comment