Computer Science, asked by Anonymous, 1 year ago

Hii....


In Comp mainly the program would asked but in theory section there is some que asked in it in that que they asked the que about that give the output of that following program.In that they tell that to find That how many time the loop is executed.


Can anyone tell me that how can we came to know that how many type the loop is executed.


If a such que asked.


No sparm.


Its urgent for me plz.



Fast ..


Reeyansh: n u must check the value of x given and the condition give so that ur answer may not become wrong
Reeyansh: also if there is a break statement ....
Anonymous: Acc to ur condition if x is greater than and equal to 10
Reeyansh: the loop will stop running
Anonymous: Yaa.
Reeyansh: yup it is
Reeyansh: n the entered value of x which we declare ..is 1 then the loop will run 10times
Anonymous: If x value would be 2 than
Reeyansh: then it will automatically get minus 1
Reeyansh: wait like this i m also getting confused ...i'll give uh a screenshot of the working

Answers

Answered by rahul200013
2

i was not being able to post so I have taken a screenshot...I m attaching it

Attachments:

Anonymous: Thx.
rahul200013: hope it helped....further i would suggest lots of practice
Answered by Reeyansh
3

sorry about the handwriting ...i did it in a hurry !! ....hope it is understandable :-(

Attachments:

rahul200013: sab toh bas relationship ka ratt lagaye kate hai
rahul200013: yes good
Reeyansh: haan bhai aashik nhi milte scche ye mujhse accha kon janta h
Reeyansh: haha
rahul200013: Reeyansh my best wishes are with you
Reeyansh: thnx bhai
rahul200013: youre welcome chote....
rahul200013: be happy
Anonymous: No more comments please
Anonymous: It's ohk I never mind. Tht u nt use for loop condition.
Similar questions