0% found this document useful (0 votes)
5 views2 pages

WAP To Show A Multiplication Table of A Given Value

The program takes a number as input from the user and prints its multiplication table from 1 to 10 using a for loop.

Uploaded by

Elaichi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

WAP To Show A Multiplication Table of A Given Value

The program takes a number as input from the user and prints its multiplication table from 1 to 10 using a for loop.

Uploaded by

Elaichi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

WAP to show a multiplication table of a given value.

Input:

#include <iostream>

using namespace std;

int main()

int n;

cout<<"Name: Anurag Shankar Hodge \n";

cout<<"Roll no.: 2341\n";

cout << "Enter an integer: ";

cin >>n;

for (int i = 1; i <= 10; ++i)

cout << n << " * " << i << " = " << n * i << endl;

return 0;

Output:

Name: Anurag Shankar Hodge

Roll no.: 2341

Enter an integer: 126951

126951 * 1 = 126951

126951 * 2 = 253902

126951 * 3 = 380853

126951 * 4 = 507804
126951 * 5 = 634755

126951 * 6 = 761706

126951 * 7 = 888657

126951 * 8 = 1015608

126951 * 9 = 1142559

126951 * 10 = 1269510

You might also like