arrow_forward همه ارسال‌ها

جزئیات ارسال کد#616

verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: C++
schedule
ارسال‌کننده و زمان:
melisa azadi (۱ سال پیش)
descriptionsolution.cpp ۳۱ خط • ۳۳۳ بایت
1#include <iostream>
2
3using namespace std;
4
5int main()
6{
7 int n;
8 cin >> n;
9 int i = 0;
10
11 int teydade_setare = 1;
12
13 while (i < n)
14 {
15 int j = 0;
16
17
18 while (j < teydade_setare)
19 {
20 cout << "*";
21 j++;
22 }
23
24 teydade_setare++;
25
26 cout << "\n";
27 i++;
28 }
29
30 return 0;
31}
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8