Write a program to input two numbers m and n and display first m multiple of n
Answers
Answered by
1
Answer:
#include <iostream.h>
using namespace std;
int main()
{
cout << "Enter two numbers ." << endl;
int m;
int n;
cin >> m,n;
if (m<0 || n<0)
{
cout << "Invalid choice" << endl;
break;
}
else
{
for (int i = 1;i <= m;i++)
{
int multiple = n * i;
cout << multiple << endl;
}
}
}
Similar questions