#include<stdio.h>
int main()
{
int x,y,h;
printf("ENTER HEIGHT OF TRIANGLE:\n");
scanf("%d",&h);
for(x=1;x<=h;x++){
for(y=1;y<=x;y++){
printf("^");
}
printf("\n");
}
return 0;
}
Have a Read!
Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!
Saturday, January 29, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment