- 3
I want to print stars in rectangle shape using c programming
8 Answers
+ 7
Sudhakar Katam ,
please show us your attempt so that we can help you.
+ 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..
+ 2
Sudhakar Katam
Learn coding and try to do self and share your attempts here.
+ 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;
}
0
I didn't know how to code
0
This is not working
0
Can you make it modify and check once then send me
- 2
Can you please make it for me