## Fibonacci Series – C Program

Fibonacci series is a sequence of numbers in which next number in the sequence is obtained by adding previous two numbers.
Source Code
#include<stdio.h>//Fibonacci Series - FScOnline.infoint main()
{
int…

Trending

- Faisalabad Waste Management Company Latest Jobs 2020
- The University of Lahore Sargodha Admission | Apply Now
- Govt. Post-Graduate Islamia College (W) Lahore Admissions 2020
- Alfalah Scholarship Scheme 2020 | Apply Now
- Sindh Health Minister Warns against Reopening Schools
- BISE Lahore Announces Supplementary Examination Schedule 2020
- AIOU Offer PGD Program For Professional Development in Different Fields
- Sindh Colleges Admission Policy 2020 by the Sindh Government
- Ministry of Information Technology September Latest Jobs 2020
- President Approved the PMC Bill 2020 Related to MDCAT

Browsing Category

Fibonacci series is a sequence of numbers in which next number in the sequence is obtained by adding previous two numbers.
Source Code
#include<stdio.h>//Fibonacci Series - FScOnline.infoint main()
{
int…

#include <stdio.h>
#include <conio.h>//Largest Number - FScOnline.infoint main()
{
int i,num,n,large=0;printf("How many numbers: ");
scanf("%d",&n);
for(i=0; i<n; i++)
{…

#include <stdio.h>
#include <conio.h>//Reverse Number - FScOnline.infoint main()
{
int num,rev=0,mod;
printf("Enter Number: ");
scanf("%d",&num);while(num!=0)
{
mod=num%10;…

#include <stdio.h>
#include <conio.h>//C Program to Display Size of Different Datatypes - FScOnline.infoint main()
{
printf("Type\t\t\tSize (bytes)");
printf("\nCharacter\t\t %d" ,sizeof(char));…

Armstrong Number
"Armstrong number is a number which is equal to sum of digits raise to the power total number of digits in the number."
Example:
"An Armstrong number of three digits is an integer such that the sum of the cubes of its…

#include <stdio.h>
#include <conio.h>//Find average marks of 5 subjects - FScOnline.infoint main()
{
int a,b,c,d,e,average;
printf("Enter marks of subject 1: ");
scanf("%d",&a);
printf("Enter marks…

Print ASCII of a Character Using Integer Variable
#include <stdio.h>
#include <conio.h>//Program to Print ASCII of a Character - FScOnline.infovoid main()
{
int x;
char ch;printf("Enter Character: ");…

Program to convert given number of days into years, weeks and daysGet number of days from user
Divide number of days with 365 to get number of years
For week take mod with 365 days and divide it with 7 you'll get weeks
And for…

Program to swap 2 variable values without using third variableAdd both variables in 2nd variable
subtract 1st from 2nd and store it in 1st
subtract 1st from 2nd and store it in 2ndC Code
#include <stdio.h>
#include…

Program to swap 2 variable values using third variableStore value of 1st variable in third variable that is temporary
Store value of 2nd variable in 1st variable
Now store value of temp or third variable in 2ndC Code
#include…