problem

Dev Skill archived problems can be discussed here.

problem

by ashraful21 » Sat Oct 22, 2016 2:33 am

Take a word (even or odd) and a number (X) from user. Now, you need to find the odd or even
numbers and the number of odd or even are that particular number (X); and print those as like the
line of number and number of element are same. As an example, the execution window of your
program may be as follows:
Sample Input/output:
RUN 01
Enter the word: even
Enter how many numbers: 7
0
2 4
6 8 10
12
RUN 02
Enter the word: even
Enter how many numbers: 12
0
2 4
6 8 10
12 14 16 18
20 22
 
Posts: 1
Joined: Sat Oct 22, 2016 2:26 am

Re: problem

by devskill » Sat Oct 22, 2016 4:01 pm

What is your question, is not clear from your writing. What you actually need, please explain clearly.
User avatar
Site Admin
 
Posts: 118
Joined: Tue Feb 02, 2016 10:24 pm


Who is online
Users browsing this forum: No registered users and 1 guest
cron