Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
No Pyramid toggle
#include<stdio.h> int main() { int i,j; char k; for (i=1;i<=5;i++) { k=i; for(j=1;j<=9;j++) { if(j>5-i&&j<5+i&&k) { printf("%2d", k); j<5?k++:k--; } else { printf(" "); if(j==5) k--; } } printf("\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
MATRICES TRIANGULARES
18BCE2182 ASSESS_2 Q4
18BCE2182 ASSESS_1 Q1-9
a
bitmask
FizzBuzz
Volume of a square pyramid With functions
C141105_SwitchNotas
light blue zoda
polymorphism simulation in plain C with a simple structures
Please log in to post a comment.