Computer Science, asked by maihuterimaa, 10 months ago

how the output is 6…¿¿‽

please find the output
help.....
javA...​

Attachments:

rajiv1144: Output is 6
maihuterimaa: how
rajiv1144: When the value of a =6 then only the statement inside if condition will work or execute
rajiv1144: For other value of 'a' except 6, the program will not print anything

Answers

Answered by Narutsu
1
Output is 6 because in the condition if inside the loop it is written if a is equal to 6. This means print value of a when only it is 6 otherwise don't print.
Attachments:

maihuterimaa: please explain from beginning
maihuterimaa: yes i want dry run
maihuterimaa: thanks
maihuterimaa: where?
maihuterimaa: thanks a lot ❤
maihuterimaa: yes please
Answered by anirudhsingh87
1

your answer mate----

output is 6 because the( if condition i.e if(a==6) is given it means that -

If value of a is equal to 6 than print the( +a) i.e 6 only

Hope it helps to you!!


maihuterimaa: yeah
maihuterimaa: hn icse
maihuterimaa: thanks a lot ❤
rajiv1144: Tabhi to
maihuterimaa: ¿¿
rajiv1144: Java is there
maihuterimaa: !!?
rajiv1144: Nothing
rajiv1144: Keep it up
maihuterimaa: yo✌(^^)
Similar questions