Ok, just as my topic says, I'm having trouble why it cannot consider negative multipliers.
Code below:
//Multiplication by Repeated addition
#include<stdio.h>
main()
{
int k, l, m, n;
printf("Enter Multiplicand: ");
scanf("%d", &k);
printf("Enter Multiplier: ");
scanf("%d",&l);
n=0;
for(m=0;m<l;m++){
n=n+k;
}
printf("Result is: %d", n);
printf("\nThank you for using Multiplication. Have a Nice day.\n");
}
Any ideas?