Answer to Question #217896 in C++ for Rosie

Question #217896
C++: write a program that uses for loop and print the number between 3 to 10
1
Expert's answer
2021-07-16T01:08:23-0400
#include <iostream>
using namespace std;
int main()
{
	//use for loop print 3 ..10
	cout << "================use for loop print [3..10]=====================\n";
	cout << "\t\t";
	for (int i = 3; i < 11; i++)
		cout << i << " ";
	cout << "\n===============================================================\n";
	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