John made a huge profit out of his grocery shop. But, his profit got reduced due to his wrong calculation in providing the balance amount to his customers.
John faced difficulty in calculating the purchase value of the same product with varied quantities. So he tries to transfer this multiplication job to his robot.
Help John by writing a program for the robot to reduce his difficulty.
Input format
Two positive integers which are the cost and number of the product purchased in each line
Output format
A single positive integer which is the quantitative total value of that product purchased
Note: Printing unwanted or ill-formatted data to output will cause the test cases to fail
Sample test cases
Input 1
10 8
OUTPUT
#include<stdio.h> #include<stdlib.h> int main() { int cost=0; int number=0; scanf("%d",&cost); scanf("%d",&number); printf("%d",cost*number); return 0; }
Comments
Post a Comment
If you any doubt. Please let me know.