You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
415 B
C

#include<stdio.h>
int multiply(int,int);
int main()
{
int a,b,p;
printf("Enter any two integers: ");
scanf("%d%d",&a,&b);
p = multiply(a,b);
printf("Multiplication of two integers is %d",p);
return 0;
}
int multiply(int a,int b)
{
static int p=0,i=0;
if(i < a)
{
p = p+ b;
i++;
multiply(a,b);
}
return p;
}