Wednesday, January 20, 2016

It's been a while not to fill up this blog. By the way, I'm trying to collect some stuff in order to improve my C learning language.

Living in digital world and improving one of programming language is just like a need #programming #c #language

Foto kiriman Hani (read:honey) (@hanifadinna) pada

Here is the code:
#include<stdio.h>
main ()
{
float i, j, h;
printf("Enter the height of triangle: ");
scanf("%f", &h);
for(i=1;i<=h;i++)
{
for(j=1;j<=i;j++)
printf("*");
printf("\n"); // new line
}
return 0;
view raw triangle.c hosted with ❤ by GitHub

No comments: