1.

Write a script to find all the odd numbers between 1 and 100

Answer»

ANSWER:

which LANGUAGE?

Explanation:

simple ALGO WOULD be to start from 1, print 50 count, step SIZE +2

for [i=1;i<100;i+=2]

prn i

-------------

j=1;

for [i=1; i<=50;i++]

j+=2

prn j



Discussion

No Comment Found