Created
January 26, 2013 13:09
-
-
Save sprintr/4642292 to your computer and use it in GitHub Desktop.
Calculates and prints the area of a room
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int width, length, area; | |
cout << "Enter the width of the room: " << endl; | |
cin >> width; | |
cout << "Enter the length of the room: " << endl; | |
cin >> length; | |
area = width * length; | |
cout << "The area of the room is " << area; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanxz For the Post