Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int x, y;
- cout << "Bitte geben Sie die Breite des Parallelogramms ein: ? ";
- cin >> x;
- cout << "Bitte geben Sie die Hoehe des Parallelogramms ein: ? ";
- cin >> y;
- for (int i = 0; i < y; i++) {
- for (int p = 0; p < i; p++) {
- cout << ".";
- }
- for (int j = 0; j < x; j++) {
- if (i == 0 || i == y-1 || j == 0 || j == x-1) {
- cout << '*';
- }
- else{
- cout << "+";
- }
- }
- cout << endl;
- }
- cout << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement