FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 54   



Following program shows you how to multiply given two numbers.
In this program we get inputs from user and multiplies those two inputs

#include <iostream>

int main() {
    int input1;
    int input2;

    std::cout << "Enter first number:";
    std::cin >> input1;

    std::cout << "Enter second number:";
    std::cin >> input2;

    int result = input1 * input2;

    std::cout << "Multiplication of given two numbers is: " << result;
}

Output:

Enter first number: 30
Enter second number: 5
Multiplication of given two numbers is: 150



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News