# Category Archives: C++ Loop Programs

## FCFS Scheduling Algorithm Program in C++

FCFS Scheduling Algorithm Program in C++ : Write a C++ Program To Calculate Average Waiting Time and Average Turn Around Time using FCFS. Program Code: FCFS Scheduling Algorithm Program in C++ We shall use the loop concept and the use of arrays to solve this programming assignment. First of all we will define some variables… Read More »

139 total views

## C ++ Program Alphabet Triangle Pattern

C Plus Plus Program Alphabet Triangle Pattern Task: Write down a C++ Program to display Alphabet Triangle Pattern. The user will enter the height of triangle. Then the program will show a right angle triangle of alphabets in Capital letters. How Alphbets Triangle Program Works This program uses nested for loops to display the required… Read More »

4,600 total views

## Convert Binary to Decimal C Plus Plus

Task: Write a Program To Convert Binary to Decimal Number in C++ Te Source code of C++ Program To Convert Binary to Decimal Number // Write a C++ program to input a binary number, // and convert into correspondin Decimal number #include<iostream> #include<math.h> using namespace std; int main() { long int binNum,rem,n,i,decimal; cout<<“Enter a Binary… Read More »

1,319 total views

## Reverse Number Code C Plus Plus

Task: Reverse Number Code C Plus Plus The Source Code of C++ Program:Reverse Number Code C Plus Plus // Write a C++ program to input a number // and display its Reverse Number // For example, if you Enter number=123 // Program will show Reverse number=321 // www.EasyCodeBook.com #include<iostream> using namespace std; int main() {… Read More »

510 total views

## Sum and Average of Float Array in C Plus Plus

Task: Sum and Average of Float Array in C Plus Plus The Source Code of C++ Program Sum and Average of Float Array // Write a C++ Program using Arrays // to input n numbers in array // then Calculate and Print sum & average // of all numbers in array #include<iostream> #include<conio.h> using namespace… Read More »

3,000 total views

## Sum & Count of Even Odd Separately in Array

Task: Sum & Count of Even Odd Separately in Array // Write a C++ program to input 10 numbers // in array then display sum and count of even // and odd numbers in Array, separately. // Author: www.EasyCodeBook.com (c) #include<iostream> using namespace std; int main() { int arr,i,esum,osum,ecount,ocount; for(i=0;i<10;i++) { cout<<“Enter Number “<<(i+1)<<” :”;… Read More »

625 total views

## Array Sum & Count Odd Numbers C Plus Plus

Task: Array Sum & Count Odd Numbers C Plus Plus Program The Source Code of Array Sum & Count Odd Numbers C Plus Plus // Write a C++ program to input 10 numbers // in array then display only odd numbers, their // sum and count in array // Author: www.EasyCodeBook.com (c) #include<iostream> using namespace… Read More »

520 total views

## Count and Sum of Even Numbers in Array C Plus Plus

Task: Count and Sum of Even Numbers in Array C++ Program The Source Code of Count and Sum of Even Numbers in Array // Write a C++ program to input 10 numbers // in array then display even numbers, their // sum and count in array // Author: www.EasyCodeBook.com (c) #include<iostream> using namespace std; int… Read More »

1,558 total views

## Reverse Number Sequence in Array C Plus Plus

Task: Reverse Number Sequence in Array C Plus Plus The Source Code of Reverse Number Sequence in Array C Plus Plus Program // Write a C++ program to input 10 numbers // in array then display actual array // and in reverse order from last to first //element. // Author: www.EasyCodeBook.com (c) #include<iostream> #include<conio.h> using… Read More »

1,060 total views

## Fibonacci Sequence Generator Using Array C++

Task: Fibonacci Sequence Generator Using Array – C++ Program The Source Code for Fibonacci Sequence Generator Using Array // Write a C++ program to input number of terms // of FIBONACCI Series required, then // display Fibonacci Terms using Array // Author: www.EasyCodeBook.com (c) #include<iostream> #include<conio.h> using namespace std; int main() { //write program to… Read More »

9,788 total views