Showing posts with label Fan. Show all posts
Showing posts with label Fan. Show all posts

Tuesday, 13 August 2013

Fan 2

Fan 2: In this post of shapes in c you will be able to construct the code for a fan (Part 2) in C++ using "*". Code: /*              Join us at http://shapesinc.blogspot.com  for more codes of shapes                             */ #include<iostream> using namespace std; int main() { cout << "Join http://shapesinc.blogspot.com...

Fan 1

Fan 1: In this post of shapes in c you will be able to construct the code for a fan (Part1) in C++ using "*". Code: /*              Join us at http://shapesinc.blogspot.com  for more codes of shapes                             */ #include<iostream> using namespace std; int main() { cout << "Join http://shapesinc.blogspot.com...

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); ...