Way to Write a Program to Input 2 Numbers of the User
How to write a program to input 2 numbers of the user and find out their product?
Answers
Answered by
0
In C++
#include<iostream.h>void main(){ int num1,num2,product;cin>>num1;cin>>num2;product=num1*num2;cout<<product;
}
#include<iostream.h>void main(){ int num1,num2,product;cin>>num1;cin>>num2;product=num1*num2;cout<<product;
}
Similar questions
English,
8 months ago
Psychology,
8 months ago
Math,
1 year ago
Computer Science,
1 year ago
Chemistry,
1 year ago
Math,
1 year ago