#include <iostream>
using namespace std;
int main()
{
int width, height;
cout << "Height: "; cin >> height;
cout << "Width: "; cin >> width;
for (int i = 0; i < height; i++)
{
for(int j = 0; j < width; j++)
{
cout << "* ";
}
cout << "\n";
}
cout << "area: " << width*height << endl;
return 0;
}
0 Comments On This Entry
← January 2022 →
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 |
Tags
My Blog Links
Recent Entries
-
Finding the area of multiple triangleson Aug 31 2009 06:48 AM
-
Colouring your console background/foregroundon Aug 31 2009 06:48 AM
-
Hide console windowon Aug 08 2009 04:45 AM
-
Converted to C++on Aug 08 2009 04:39 AM
-
Weclomon Aug 08 2009 03:56 AM
Search My Blog
6 user(s) viewing
6 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)
Test
test



Leave Comment








|