Development/기타
Mulplication without using '*' operator
까 치
2010. 12. 21. 19:44
//C Program for Multiplication without Using Multiply Operator *
#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,s=0;
clrscr();
printf(“nEnter the values”);
scanf(“%d%d”,&n,&m);
while(m!=0)
{
s=s+n;
m–;
}
printf(“Result = %d”,s);
getch();
}
By http://mycfiles.wordpress.com