+ 1
i have a c++ exam tomrrow and i have a problem in loops :(
9 Réponses
+ 1
for (int i=1;i<=5;i++){
for (int j=1;j<=5;j++){
if (i==1 || i== 5 || j==1 || j==5) {
Draw anything
}
}
}
0
i have to write a program that will take as input a postive integer between 3 and 5 included the program will draw a square of stars the body is empty
0
thanks sir :)
0
draw only when the value of variables be the first and last
0
sorry, to late
0
wow
0
good
0
******
*****
****
***
**
*
what is the code for it
- 1
for (int y=5; y>=1; y--){
for (int x=1; x<=x; x++){
write x
}
}