Professional Documents
Culture Documents
National University of Modern Languages Rawalpindi
National University of Modern Languages Rawalpindi
LAB #06
SUBJECT:
PROGRAMMING FUNDAMENTAL
Lab#6
Submitted by:
Submitted to:
TASK#02
Write a program in C++ to check whether a number is prime or not using for loop, while
loop, do-while loop.
By using do while:
RUNNING ANDC COMPILING :
TASK#04
Write C++ program to display Fibonacci series using for looP
RUNNING AND COMPLING
TASK#05
Write C++ program to find & print factorial of a given number using for loop
RUNNING AND COMPILING