Showing posts with label Moving. Show all posts
Showing posts with label Moving. Show all posts

Tuesday, 13 August 2013

Moving Fan

Moving Fan: In this post of shapes in c you will be able to construct the code for a moving fan in C++ using "*". Code: #include<iostream> #include<Windows.h> using namespace std; void fan1(const int size); void fan2(const int size); int main() { int size, time; cout<< "Enter the size of fan" << endl; cin>>size; cout<< "For how many seconds you want to switch on the fan" << endl; cin>>time; system("cls"); for(int i=0 ; i<2*time ; i++) { fan1(size); ...