You are on page 1of 2

EXPERIMENT NO:03

TITLE: SOLVING COMPLEX PROBLEMS


3.1 OBJECTIVE:
3.2 IN LAB TASKS:
TASK 1:
Write a Program which takes 5-digit number as an input and split this number.
TASK 2:
Write a Program which takes 5-digit number as an input and then reverse the number.
TASK 3:
Write a Program which takes 5-digit number as an input, split this number and add 1 to each of
its digit considering carry.
(e.g. if you enter 99999 then carry will be generated)

3.3 POST LAB TASKS:


TASK 1:
Write a program which takes two 5-digit numbers as an input, split these numbers and add them
by considering carry.
SOLUTION:
Step 1: Mathematical Equations and Scientific Terms.
(Hand written that how you are adding two 5 digits numbers by considering carry)
Step 2: Code
(Including comments with each line)
Step 3: Output
TASK 2:
If a 5-digit number is input through the keyboard, write a program to reverse the
number. (hint: use modulus % operator)

SOLUTION:
Step 1: Mathematical Equations and Scientific Terms.
(Write a logic to reverse the number in mathematical form)
Step 2: Code
(Including comments with each line)
Step 3: Output

3.4 CONCLUSION:

You might also like