Answer to Question #58418 in C++ for Arvin

Question #58418
. Write a program to display the multiple of 3 backward from 33 to 3, inclusive. Use a for loop for this purpose
1
Expert's answer
2016-03-18T15:48:04-0400
#include <iostream>

using namespace std;

int main()
{
for (int i = 33; i >= 3; i--)
{
if (i % 3 == 0)
cout << i << " ";
}
cout << endl;
system("pause");
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
APPROVED BY CLIENTS