0% found this document useful (0 votes)
9 views4 pages

Pr05 PWP

The document contains 8 programming exercises including printing patterns with loops, printing even numbers between 1 to 100 using while loop, finding the sum of first 10 natural numbers using for loop, printing Fibonacci series, calculating factorial of a number, reversing a given number, finding the sum of digits in a number, and checking if a number is a palindrome.

Uploaded by

gr402563
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views4 pages

Pr05 PWP

The document contains 8 programming exercises including printing patterns with loops, printing even numbers between 1 to 100 using while loop, finding the sum of first 10 natural numbers using for loop, printing Fibonacci series, calculating factorial of a number, reversing a given number, finding the sum of digits in a number, and checking if a number is a palindrome.

Uploaded by

gr402563
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Name: Mohan Lobhaji Yedatkar

SUB: PWP(22616)
Practical No:05
Roll.No: 58

XI. Exercise
1. Print the following patterns using loop:
a.
*
**
***
****

b.
*
***
*****
***
*
c.
1010101
10101
101
1

2. Write a Python program to print all even numbers between 1 to 100 using while loop.

3. Write a Python program to find the sum of first 10 natural numbers using for loop
4. Write a Python program to print Fibonacci series

5. Write a Python program to calculate factorial of a number

6. Write a Python Program to Reverse a Given Number


7. Write a Python program takes in a number and finds the sum of digits in a number

8. Write a Python program that takes a number and checks whether it is a palindrome
or not.

You might also like