Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void dessineRectangle(int l, int h)
- {
- for(int ligne(0); ligne < h; ligne++)
- {
- for(int colonne(0); colonne < l; colonne++)
- {
- cout << "*";
- }
- cout << endl;
- }
- }
- int main()
- {
- int largeur, hauteur;
- cout << "Largeur du rectangle : ";
- cin >> largeur;
- cout << "Hauteur du rectangle : ";
- cin >> hauteur;
- dessineRectangle(largeur, hauteur);
- return 0;
- }
Add Comment
Please, Sign In to add comment