Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
120465-11.1-3E
C assignment due sunday
Atoi without minus
Finite State Machine Program Example (ECE 2534)
avance pregunta 2 guía 4 de módulo 3
Project 3 part 2 Book v10.2
left significant peace as unison real manual user
length
Program to input form command line and print it
SAI_1-3.c
Please log in to post a comment.