May 20, 2015

C program to multiply two number

#include<stdio.h>

int main()
{
   int a, b, c;
   clrscr();

   printf("Enter two numbers to multi \n");
   scanf("%d%d",&a,&b);

   c = a * b;

   printf("product of entered numbers = %d\n",c);
   getch();
   return 0;
}

OUTPUT:

Enter two multi
2 4

product of entered numbers = 8

No comments:

Post a Comment