Multiplication without using operator
#include <stdio.h>
int main(){
// code to multipy a and b without using *--
float a,b,c=0;
printf("Enter first operand: ");
scanf("%f",&a);
printf("Enter second operand: ");
scanf("%f",&b);
// a*b means a+a+a+a+...b times--
for(int i=1;i<=b;i++){
c=c+a;
}
printf("Product is %.2f\n",c);
return 0;
}
