0% found this document useful (0 votes)
12 views16 pages

Practical Programming Tasks and Outputs

The document outlines a series of programming tasks, including inputting and displaying messages, comparing numbers, and determining properties of numbers such as perfect numbers and prime status. It also includes tasks for string manipulation, Fibonacci series generation, and dictionary creation for student records. Each task is followed by a placeholder for output, indicating the expected results for each operation.

Uploaded by

atifmatloob32
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)
12 views16 pages

Practical Programming Tasks and Outputs

The document outlines a series of programming tasks, including inputting and displaying messages, comparing numbers, and determining properties of numbers such as perfect numbers and prime status. It also includes tasks for string manipulation, Fibonacci series generation, and dictionary creation for student records. Each task is followed by a placeholder for output, indicating the expected results for each operation.

Uploaded by

atifmatloob32
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

Practical File

1. Input a welcome message and display it.

OUTPUT:

2. Input two numbers and display the larger / smaller


number.

Output:
[Link] three numbers and display the largest / smallest
number.

OUTPUT:
4.

for 1:

output:
pattern2:

output:

Pattern3:
Output:

4. Determine whether a number is a perfect number, an


Armstrong number or a palindrome.
OUTPUT:
• Input a number and check if the number is a prime or
composite number.

OUTPUT:

• Display the terms of a Fibonacci series.


• Compute the greatest common divisor and least
common multiple of two integers.

OUTPUT:
• Count and display the number of vowels, consonants,
uppercase, lowercase characters in string.

OUTPUT:
• Input a string and determine whether it is a
palindrome or not; convert the case of characters in a
string.

output:

• Find the largest/smallest number in a list/tuple

OUTPUT:

• Input a list of numbers and swap elements at the even


location with the elements at the odd location.
OUTPUT:

• Input a list/tuple of elements, search for a given


element in the list/tuple.

OUTPUT:
• Create a dictionary with the roll number, name and
marks of n students in a class and display the names of
students who have marks above 75.

Output:

You might also like