Select Menu

Search This Blog

Populer Posts Hari ini

Popular Posts

Powered by Blogger.

Lorem 1

adsense

" });

Circle Gallery

" });

News

" });
» » Source code Segitiga Bintang dengan bahasa C

#include <stdio.h>
#include <conio.h>

main(){
    int baris;
    printf("Masukkan banyak baris : ");scanf("%i",&baris);
    printf("\n");
    for(int y=1; y<=baris; y++){
        for(int x=1; x<=y; x++){
             printf("*");
        }
        printf("\n");
    }
  getch();
}

About andi

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply