Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  mult
Language: C/C++
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
 int num1,num2,i,mul=0;
 clrscr();
 printf("Enter 1st number: ");
 scanf("%d",&num1);
 printf("Enter 2nd number: ");
 scanf("%d",&num2);
 for(i=1;i<=num2;i++)
 {
  mul+=num1;
 }
 printf("nnnProduct of %d and %d is %d",num1,num2,mul;);
 getch();
}     
          
Comments: