do while loop

Program Generate for loop, while loop, and do while loop using if and switch functions

Program Generate for loop, while loop, and do while loop using if and switch functions

Generate a Loops for loop, while loop, and do while loop using if and switch functions Objects: Write a program to generate a Loops for loop, while loop, and do while loop using if and switch functions. C++ Projects. Code: #include<iostream> #include<conio.h> #include<string> using namespace std; void main() { char a; int i=0,f1,id,no,tab; char whl,ch=0,dow; …

Program Generate for loop, while loop, and do while loop using if and switch functions Read More »

Write a program to calculate the factorial of any number using do while loop

Write a program to calculate the factorial of any number using do while loop

Program to calculate the factorial using do while loop Object: Write a program to calculate the factorial of any number using do while loop. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { int i=1,no,fact=1; cout<<” Enter Any Number: “; cin>>no; do { fact=fact*i; i++; }while(i<=no); cout<<“\n Factorial …

Write a program to calculate the factorial of any number using do while loop Read More »

program to generate a series of first 50 even numbers using while loop.

Program to generate a series of first 50 even numbers using while loop

program to generate a series of first 50 even numbers using while loop   Object: Write a program to generate a series of first 50 even numbers using while loop. C++ projects for beginners with source code Code: #include<iostream> #include<conio.h> using namespace std; void main() { int i=0; while(i<100) { if(i%2==0) { cout<<i<<“,”; } i++; …

Program to generate a series of first 50 even numbers using while loop Read More »