Subscribe to stev3's Blog        RSS Feed
-----

Converted to C++

Icon Leave Comment
#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
2345678
9101112131415
161718192021 22
23242526272829
3031     

Tags

    Recent Entries

    Search My Blog

    5 user(s) viewing

    5 Guests
    0 member(s)
    0 anonymous member(s)

    Test

    test