CP Lab 03
CP Lab 03
Signals
National University of
Sciences & Technology
Section: BEE-61 A
Group Members:
S. No Names
1. Wania Ali
2. Rashid Aziz
R2 (3)
R3 (3)
R4 (3)
R5 (3)
Total (15)
R1 (3)
R2 (3)
R3 (3)
R4 (3)
Total(12)
cout << "Fibonacci sequence up to " << num << ": ";
Write a program that calculates the factorial of a given number using a loop.
#include <iostream>
#include <vector>
int main(){
cin>>num;
fact = fact * i;
return 0;}
#include <iostream>
Program that finds greatest common divisor (GCD) of two numbers using a loop.