If I send a number it need to multiply.
Example: If I send number 1 to 10 it need to multiply with 2
If I send number 11 to 20 it need to multiply with 36
How can I ? Please help me...
My code. (The "amount" is the value enterring and the enter number is the one is multiplying.
#include<stdio.h>
#include<conio.h>
main(){
int a, b, c;
printf("\tTITLE");
printf("\nEnter amount: ");
scanf("%d", &a);
printf("Enter Number: ");
scanf("%d", &b);
c = a*b;
printf("Ans: %d", c);
printf("\nThank you for using!!!");
}
Help me please...........