Answer to Question #265825 in C++ for Urooj

Question #265825

Write a program using a for loop to print the table of any given number till 10


1
Expert's answer
2021-11-14T09:21:30-0500
#include <iostream>
#include <iomanip>


using namespace std;




int main()
{
	int number;
	cout<<"Enter the number: ";
	cin>>number;
	
	for(int i=1;i<=10;i++){
		cout<<number<<" X "<<i<<" = "<<(i*number)<<"\n";	
	}


	cin>>number;
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS