පරිගණක දැනුම බෙදාහදා ගන්න.
Place to share my computer knowledge with my friends
My C programs: Triangle 1 හරි ත්රිකෝනය
#include<stdio.h>
int main(){
int a;
printf("enter value : ");
scanf("%d",&a);
int b,d=0,e;
for(a+1;a>0;a--){
++d;
for(b=a;b>0;b--){
printf(" ");
}
for(e=(d*2)-1;e>0;e--){
printf("*");
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment