You are on page 1of 1

North South University

CSE 115L

Name: Id: Section: 14


1. Suppose, User is giving two inputs. One is the lower limit and other is the upper limit.
Now write a program that will print the numbers in word from lower limit to 9 and then if
the number is even the program will print “Even” and if the number is odd, the program
will print “Odd”. This process will continue up to the upper limit.
Input Output
Lower Limit: 7 Seven Eight Nine Even Odd Even
Upper Limit: 12
Lower Limit: 8 Eight Nine Even Odd Even Odd
Upper Limit: 14 Even

2. Suppose, you are writing code to build Super Mario game. In this stage, you have to
design for the stage where Super Mario face the obstacle where he need to jump to cross
this obstacle. Depending on the stage, the obstacle will vary. If the stage is higher, the
obstacle will be bigger. Write a C program to print that obstacle. User will give the stage
number and based on that the obstacle will be printed
Stage: 2 Stage: 3 Stage: 5

You might also like