Software Developers Interview Questions

96,331 software developers interview questions shared by candidates

Write a program to print all even numbers one below the other followed by odd numbers between 1 to 100 using only one 'for' loop. Output should look like this: 2 4 6 ...... 98 1 3 5 ...... 99 Is it possible to write a program for above output given the condition stated above
avatar

Software Developer

Interviewed at Intelliswift

4
Jul 11, 2014

Write a program to print all even numbers one below the other followed by odd numbers between 1 to 100 using only one 'for' loop. Output should look like this: 2 4 6 ...... 98 1 3 5 ...... 99 Is it possible to write a program for above output given the condition stated above

Viewing 361 - 370 interview questions

Glassdoor has 96,331 interview questions and reports from Software developers interviews. Prepare for your interview. Get hired. Love your job.