How to multiply two numbers without using multiplication operator in c programming ?
#include <stdio.h>
int main()
{
int a,b,s=0,i;
printf("enter the a and b values\n");
scanf("%d %d",&a,&b);
for(i=1;i<=b;i++)
{
s=s+a;
}
printf("%d",s);
}
output:-
enter the a and b values
10 2
20


0 కామెంట్లు