Call Support +91-85588-96644
TCYonline

Login

Sign Up

Please enter a Username or Email ID
Please enter a password
Keep me logged in
Please enter your name
Please enter your mobile number
You can't leave Captcha Code empty
By submitting this form, you agree to the Terms & Privacy Policy.
OR

Sign Up via Facebook

Sign Up via Google

Sign Up via Twitter

Download Software
Tests given

Download TCY App

App Image

An algorithm for summing all odd numbers between 1 and 50 will be

 
I step : Write N = 0
II Step : Write N = N+2
II Step : Write N
IV Step : If N = 50 then and end else go to step 2
I step : Write N =1
II Step : Write N = N+2
II Step : Write N
IV Step : If N = 50 then and end else go to step 2
Both (1) and (2)
None of these

Reply


Please type your answer before submitting.
Submit

Answer will be "none of these" as you will never get N=50.

Mentors please correct me if I had made a mistake

Yes... that means 72.5% students definetly attempted it wrong and at least 2 attempted it right