Write a c++ program for multiplication of two variables var a=5 var b=6
Answers
Answered by
1
Answer:
Here is ur answer. ....❤❤❤
include <iostream>
using namespace std;
int main()
{
double firstNumber, secondNumber, productOfTwoNumbers;
cout << "Enter two numbers: ";
// Stores two floating point numbers in variable firstNumber and secondNumber respectively
cin >> firstNumber >> secondNumber;
// Performs multiplication and stores the result in variable productOfTwoNumbers
productOfTwoNumbers = firstNumber * secondNumber;
cout << "Product = " << productOfTwoNumbers;
return 0;
hope it helps u....follow me......
plz mark it as a brainliest answer.....❤❤❤❤
Answered by
2
Answer:
Here it is..
Explanation:
#include <iostream.h>
#include <conio.h>
void main
{
clrscr();
int a,b,s;
a=5;
b=6;
s=a*b;
cout<<"The product is"<<s;
getch();
}
}
Similar questions
Computer Science,
5 months ago
Math,
5 months ago
Computer Science,
5 months ago
Physics,
11 months ago
CBSE BOARD X,
11 months ago
Math,
1 year ago
Biology,
1 year ago