ProAnswers.org

Write a C program to perform multiplication of two integers by using negative sign?

#include

	#include 

	void main() 

	{ 

	int a,b,c,d=0; 

	clrscr(); 

	printf(“

enter two numbers:”);

	scanf(“%d%d”, &a, &b); 

	for(c=1;c<=b;c++) 

	d=(d)-(a); 

	printf(“Multiplication of %d * %d:%d”,a,b,d); 

	getch(); 

	} 

	Output: 

	Enter two numbers: 5 5 

	Multiplication of 5 *5 : 25