Computer Science, asked by ayemaf5, 1 year ago

can someone explain me this GW basic program?

Attachments:

Answers

Answered by garywalter1221
1

I'm able to make this type

But I'm working on your question

When I'm done I'll give u the program(Simple program of this pattern)


See the other photo if u will try this program in C language u will understand how this program works


Attachments:

ayemaf5: aw okay thanks tho❤️
garywalter1221: but in C language I'll try to make this
ayemaf5: alright
garywalter1221: see the other photo
ayemaf5: thanks mate
garywalter1221: finally I understand your question
garywalter1221: isme sbse pehle initialize kiya gya hai, fir uske badd loop use krke jo shuruwat ke Z hai usko print krwa diya gya hai aur fir next line fir uske baad ek condition apply hui hai agar A=1 hota hai toh program terminate ho jae.
garywalter1221: fir uske baad Z ki jo diagonal line hai usko print krawaya gya hai 8 terms tk uske badd jo Z ki diagonal line hai uske liye logic diya gya hai (usko diagonal shape me krne ke liye) uske baad nex line kr diya gya hai aur fir goto 30 means jb tk yeh pura Z is tarah ka na bn jae tb tk program run kre aur jaise j=hi bn jae toh pura print kr de.

I think shayd aapko samjh me aa gya hoga (shayd)
ayemaf5: apka shukriya, I just hope my exam went well... thanks again
garywalter1221: u r welcome
Similar questions