76 309
Assignments Done
98,1%
Successfully Done
In May 2019

Answer to Question #49838 in C++ for yousuf waseem

Question #49838
Write a program output a rotating fan on the screen. This is done by printing first a Plus sign in the center of the screen,i.e plus and multiply sign
Expert's answer
#include <iostream>
#include <windows.h>
using namespace std;
int main() {
while (true) {
Sleep(500);
cout << "+";
cout << "\r";
Sleep(500);
cout << "x";
cout << "\r";
}
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions