👤

C++
Napisze ktoś program w którym będzie występować (trapez)?
Przykład:
***
****
*****
******
(Sam trapez bez innych napisów itd.)
Daje naj


Odpowiedź :

Odpowiedź:

#include <iostream>

using namespace std;

int main(){

   cout << "***"    << endl;

   cout << "****"   << endl;

   cout << "*****"  << endl;

   cout << "******" << endl;

   cout << endl;

   cout << "   ****"    << endl;

   cout << "  ******"   << endl;

   cout << " ********"  << endl;

   cout << "**********" << endl;

   return 0;

}