Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C pattern Rhombus
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <stdio.h> int main() { int i,j; for(i=1;i<=4;i++) { for(j=1;j<=7;j++) { if(j>=5-i && j<=3+i) { printf("*"); } else { printf(" "); } } printf("\n"); } for(i=1;i<=4;i++) { for(j=1;j<=7;j++) { if(j>=i+1 && j<=7-i) { printf("*"); } else { printf(" "); } } printf("\n"); } return 0; }
run
|
edit
|
history
|
help
0
array and its sum
141128_EjemploChorraArray
primeno
Sum Two Numbers
C141106_TablaMultiplicar
Lab 9 v0.8
Eee
Lab 9 v0.965
pattern 12
Check EOF Value