Ekrana Resimdeki Çıktıyı Yazdırır…

#include <cstdlib>
#include <iostream>

using namespace std;

int main(void)
{
int total_line, line = 1, star=1;
cout << “Kac Satir Olussun? “;
cin >> total_line;
while (line <= total_line){
star=1;
while (star <= line-1){
cout << “*”;
star++;
}
cout << “*” <<endl;
line++;
}
system(“PAUSE”);
return EXIT_SUCCESS;
}

Yorum Yapın

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d blogcu bunu beğendi: