Latest

# Browsing: C Programs

## 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…

## Find Largest Number Among “n” Numbers – C Program

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

## Reverse Any Number – C Program

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

## Print Size of Different Data Types – C Program

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

## Whether a Given Number is Armstrong Number – C Program

Armstrong Number "Armstrong number is a number which is equal to sum of digits raise to the power total number of digits…

## Find and Print Average Marks of 5 Subjects – C Program

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

## Print ASCII of a Character – C Program

Print ASCII of a Character Using Integer Variable #include <stdio.h> #include <conio.h> //Program to Print ASCII of a Character - FScOnline.info void…

## [C/C++] Convert Given Number of Days into Years, Weeks and Days

Program to convert given number of days into years, weeks and days Get number of days from user Divide number of days with…

## [C/C++] Swap 2 Variable Without Using Third Variable

Program to swap 2 variable values without using third variable Add both variables in 2nd variable subtract 1st from 2nd and store it in…

## [C/C++] Program to Swap 2 Variable Using Third Variable

Program to swap 2 variable values using third variable Store value of 1st variable in third variable that is temporary Store value of…
×