Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pattern
//gcc 5.4.0 #include <stdio.h> int main(void) { int n,i,j; scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=2*i-1;j++) { if(j%2==0) printf("* "); else printf("%d ",i); } printf("\n"); } for(i=n-1;i>=1;i--) { for(j=1;j<=2*i-1;j++) { if(j%2==0) printf("* "); else printf("%d ",i); } printf("\n"); } return 0; }
run
|
edit
|
history
|
help
0
recurs3
CPTTRN_1
fgets and basic string manipulation
Goodone for understanding array passing
Project 5 v0.11
CONTADOR DE PALABRAS
tarun ceo
Lab 9 v0.9
romitk
shrinken shraken shrank leave as no cold call acces program unles clownbtweak blue voda