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
Deadlock
Finding power using recursion
Sunday assignment v2
20171116_TARTAGLIA
PREGUNTA 10 CADENAS
Project 4 v.3
Media de 3 numeros
223780
string_ptr_to_fct_param
TruncatablePrime