Multiplication of Two Numbers || C++ Program for Multiplication of Two Numbers||C++

In this, we are going to see how to multiply two numbers with the help of C++ program.

The Code given below can be used in Turbo C++ Compiler.


// Multiplication of two numbers
    #include<iostream.h>
    #include<conio.h>
    
    void main()
    {
        clrscr();
        int a = 13;
        int b = 4;
        int c = a * b;
        cout<<"Multiplication of a by b is : "<<c<<endl;
        getch();
    }
The Code given below can be used in g++/gcc Compiler.

// Multiplication of two numbers
    #include<iostream>
    using namespace std;
    
    int main()
    {
        int a = 13;
        int b = 4;
        int c = a * b;
        cout<<"Multiplication of a by b is : "<<c<<endl;
        return 0;
    }

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post