Skip to main content

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

Popular posts from this blog

Raju is a Civil Engineer. He is writing software to automate his work. As a part of his requirement, he wants to calculate the circle diameter, circumference, and area. Help Raju to complete his task. Get radius as input.

OUTPUT

Seetha, a maths teacher has started to learn the C programming language. She writes a program to do basic arithmetic operations. Help Seetha to complete her first program.

OUTPUT