0% found this document useful (0 votes)
3 views6 pages

PFLabmanual 5

The document is a lab manual for a Programming Fundamentals course at Al-Shifa Institute of Health Sciences, focusing on while loop exercises. It includes problems such as printing numbers, calculating sums, and displaying the Fibonacci series. Additionally, it lists tasks for students to complete using while loops, such as creating multiplication tables and number guessing games.

Uploaded by

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

PFLabmanual 5

The document is a lab manual for a Programming Fundamentals course at Al-Shifa Institute of Health Sciences, focusing on while loop exercises. It includes problems such as printing numbers, calculating sums, and displaying the Fibonacci series. Additionally, it lists tasks for students to complete using while loops, such as creating multiplication tables and number guessing games.

Uploaded by

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

Al-Shifa Institute of Health

Sciences Narowal

PROGRAMMING FUNDAMENTAL
LAB MANUAL 5

Course Instructor Miss Farwa Khalid

Department Software Engineering

Semester 1st

Problem 1
A program using while loop to print numbers from 1 to 10.

Output

Problem 2
A program to print sum of numbers from 1 to n using while loop.

Output

Problem 3
A program that prints numerals in reverse using while loop.

Output

Problem 4
A program that displays the Fibonacci series using a while loop.

Output

To do Tasks
1. Write a program that takes a number as input and displays its multiplication table (from 1
to 10) using a while loop.
2. Write a program that calculates the sum of the squares of the first N natural numbers
using a while loop
3. Create a program where the user tries to guess a pre-defined number (e.g., 7). Keep
prompting the user for input until they guess correctly using a while loop.

You might also like