Professional Documents
Culture Documents
Lab 1
Lab 1
Laboratory 1
1. Questions
1. Write a program to input two integer numbers and display the sum of even numbers
between these two input numbers.
2. Write a program to find GCD (greatest common divisor or HCF) and LCM (least
common multiple) of two numbers.
3. Write a program to display Fibonacci series up to given limit.
2. Introduction
3. Algorithm
1.
2.
3.
1. Take input for value n as a limit and set x=0 and y=1, i=1 and next term as undefined.
2. Using “for loop” in which i will be increasing till limit.
3. Then use , printf("%d",x); next=x+y; x=y; y=next;
Name: Anubhav Mishra Roll Number:18ETCS002017
4. Program
5. Presentation of Results