Tuesday, 13 May 2014

Introduction to Programming CS201 Vu current Assignment No 1 Solution 13th May 2014

Detailed Description:

The program should prompt the user for one character option (either ‘e’, ‘E’ or ‘o’, ‘O’).

It should respond in the following ways:
  • If user enters character option ‘e’ or ‘E’ then it should display the even numbers from 1 to 50.
  • If user enters character option ‘o’ or ‘O’ then it should display the odd numbers from 1 to 50.

Sample output of the program:
If user enters ‘e’ then it displays the even numbers from 1 to 50.

 Introduction to Programming CS201 Vu current Assignment No 1 solution idea :