Write An Algorithm, Pseudo-Code and Draw A Flowchart To Print All Strong Numbers Between 1 To N

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

ANNA UNIVERSITY

MIT CAMPUS
B.TECH - RUBBER & PLASTICS TECHNOLOGY
GE 5161 - PROBLEM SOLVING AND PYTHON PROGRAMMING
LABORATORYENDSEMTER LAB EXAM –JULY 2023
DATE: 26/07/2023 MARKS: 100 DURATION: 2 Hours 30 Minutes
REG NO:
RANDOM NUMBER ALLOTED:

Write an algorithm, pseudo-code and draw a flowchart to print all strong numbers
between 1 to n.
B1 25
(Ex. 145, 145=1! + 4! + 5! )

Write a python program to get input an integer and then output both the individual
digits of the number and the sum of the digits.
B2 25
For example, it should output the individual digits of 3456 as 3 4 5 6 and the sum
is 18 and output of the individual digits of -2345 as 2 3 4 5 and the sum is 14.

Write a python program to find nth term in the series 9, 33, 73,129 ….

Using, user defined function with arguments and returns the value to the called
function.
B3 25
Example:
Input : n=4 Input : n=5
Output : 129 Output : 201

B4 Write a program to create two tuples and join as one tuple and apply slice
operation to retrieve the values stored in the tuple and convert tuple to two list, one 25
list containing odd numbers and another list containing even numbers and join the
two list as one and convert back to tuple and display tuple.

You might also like