Computer Science, asked by ankitlkoar, 2 months ago

WAP to make a table of any number which the user wants in c++.​

Answers

Answered by shafiquemohiuddin
0

Answer:

I don't know what is the answer

Explanation:

Mark me as brainliest

Answered by HarishAS
0

\underline{\mathrm{Program}}: \\ \\ \tt{#in clude\ <iostream>} \\ \\ \tt{using\ n ame space\ std;} \\ \\ \{ \\ \\ {\ \ \ \ } \tt{int\ n\ ;} \\ \\ {\ \ \ \ }\tt{cout << "Enter\ a\ number\ for \ table: ";} \\ \\ {\ \ \ \ }\tt{cin >> n\ ;} \\ \\ {\ \ \ \ }\tt{for\ (int\ i = 1\ ; i<= 10; ++i)\ \ \{ } \\ \\ {\ \ \ \ }{\ \ \ \ }\tt{cout << n << " \times " << i << " = " << n * i << endl;} \\ \\ {\ \ \ \ } \} \\ \\ {\ \ \ \ }\tt{return\ 0;}\\ \\ \}

Explanation :

Here we are getting the input of the number for which we need the mutiplication table and then mutiplying with 1 to 10 using a 'for' loop and printing them.

Hope this helps : )

Similar questions