Skip to main content
Search
Search This Blog
Bhaskar
welcome to Bhaskar blogspot
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
c programs
January 02, 2020
Multiplication of 2 numbers without using Asterisk(*):
#include <stdio.h>
int main()
{
int a,b,i,res=0;
printf("enter 2 numbers:");
scanf("%d%d",&a,&b);
for(i=1;i<=b;i++)
{
res=a+res;
}
printf("a*b=%d",res);
return 0;
}
Comments
Popular Posts
July 02, 2019
interesting c programs
Comments
Post a Comment