0% found this document useful (0 votes)
2 views2 pages

Python Programs Output for Class XI

Uploaded by

beheranirmal72
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)
2 views2 pages

Python Programs Output for Class XI

Uploaded by

beheranirmal72
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

Output of Python Programs (Class XI)

1. Welcome Message Program

Input:

Enter your first name: John

Enter your last name: Doe

Output:

Welcome John Doe

2. Simple Interest Calculator

Input:

Enter the principal amount: 1000

Enter the rate of interest: 5

Enter the time (in years): 2

Output:

Simple Interest is: 100.0

3. Input Three Numbers

Input:

Enter first number: 4.5

Enter second number: 10

Enter third number: 2

Output:

The numbers entered are: 4.5 10.0 2.0

4. Star Pattern

Input:

Enter the number of lines: 4

Output:
*

* *

* * *

* * * *

5. Even or Odd

Input:

Enter a number: 7

Output:

The number is odd.

6. Fibonacci Series

Input:

Enter number of terms: 5

Output:

Fibonacci Series:

0 1 1 2 3

7. Smallest of Three Numbers

Input:

Enter first number: 8

Enter second number: 3

Enter third number: 6

Output:

The smallest number is: 3.0

You might also like