PROGRAM TO MULTIPLY TWO NUMBERS WITHOUT USING *

// CLICK THE PIC TO ENLARGE IT

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,m,i,f;
clrscr();
printf("ENTER TWO NUMBERS\n");
scanf("%d%d",&a,&b);
if(a<0||b<0)
printf("WRONG INPUT");
else
{
do
{ m=0;
for(i=1;i<=b;i++)
{
m=m+a;
}
printf("%d\n",m);
printf("ENTER 1 FOR RE USING THE PROGRAM\n");
printf("ENTER ANY OTHER NUMBER FOR EXIT\n");
scanf("%d",&f);
}while(f==1);
}
printf(" THANK FOR USING THE PROGRAM");
getch();
}


SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS

Comments