• 24 Nisan 2025 11:04

Sait ORHAN

Öğretmek için Öğrenin- Öğrenmek için Öğretin

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

BySait ORHAN

Eyl 10, 2011
#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;
}

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.