About

Wednesday, 18 January 2012

Program Membuat Segitiga Siku Siku

#include<iostream>
#include<conio.h>

int main(){
    int t,y,x;
    cout << "Masukkan tinggi segitiga : ";
    cin  >> t;
    cout << "----------------------------\n";

    for(y=1;y<=t;y++){
        for(x=1;x<=y;x++){
            cout << "*";
        }
        cout << "" << endl;
    }
    getch();
}

Baca Juga Artikel dibawah ini :

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons