Skip to content

Instantly share code, notes, and snippets.

@sprintr
Created January 26, 2013 13:09
Show Gist options
  • Save sprintr/4642292 to your computer and use it in GitHub Desktop.
Save sprintr/4642292 to your computer and use it in GitHub Desktop.
Calculates and prints the area of a room
#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;
}
@MuhammadAAbi
Copy link

Thanxz For the Post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment