- 3

I want to print stars in rectangle shape using c programming

23rd Dec 2021, 5:49 PM
Sudhakar Katam
8 ответов
+ 7
Sudhakar Katam , please show us your attempt so that we can help you.
23rd Dec 2021, 6:04 PM
Lothar
Lothar - avatar
+ 2
#include <some standard library to print> return variable type some main function (void) { forloop(init some variable; check if variable is less or equal to; increase variable){ forloop(init some variable; check if variable is less or equal to; increase variable){ print function("*"); } print function("some new line character"); } } That should do it, your turn..
23rd Dec 2021, 6:23 PM
William Owens
William Owens - avatar
+ 2
Sudhakar Katam Learn coding and try to do self and share your attempts here.
24th Dec 2021, 4:32 AM
A͢J
A͢J - avatar
+ 1
Use a double for-loop. Here is the code #include <stdio.h> int main(int argc, char**argv) { int width = 10, height = 5; for(int i=0; i<height; i++){ for(int k=0; k<width; k++){ printf('#'); } printf("\n"); } return 0; }
23rd Dec 2021, 6:48 PM
Purple Requiem
Purple Requiem - avatar
0
I didn't know how to code
23rd Dec 2021, 6:06 PM
Sudhakar Katam
0
This is not working
24th Dec 2021, 3:10 AM
Sudhakar Katam
0
Can you make it modify and check once then send me
24th Dec 2021, 3:10 AM
Sudhakar Katam
- 2
Can you please make it for me
23rd Dec 2021, 6:06 PM
Sudhakar Katam