Tagged: while loop

0

Prime number or Not in C using While Loop

Before going to the program for Prime Number or Not first let us understand what is a Prime Number? Prime Number:                  A Prime Number is a number greater...

2

Armstrong Number or Not in C using While loop

Before going to the program first let us understand what is a Armstrong Number? Armstrong Number:                             An Armstrong number of three digits is an...

0

Reverse of a Number using while loop in C

Program code to find Reverse of a Number in C: #include<stdio.h> #include<conio.h> void main() { int n,a,r,s=0; clrscr(); printf(“\n Enter The Number:”); scanf(“%d”,&n); a=n; //LOOP FOR FINDING THE REVERSE OF A NUMBER while(n>0) { r=n%10;...

0

Reverse of a Number using while loop in C++

Program code to find Reverse of a Number: #include<iostream.h> #include<conio.h> void main() { int n,a,r,s=0; clrscr(); cout<<“\n Enter The Number:”; cin>>n; a=n; //LOOP FOR FINDING THE REVERSE OF A NUMBER while(n>0) { r=n%10; s=s*10+r; n=n/10;...

0

Fibonacci Series in C using While Loop

Before going to the program first let us understand what is a Fibonacci Series? Fibonacci Series:                                    Fibonacci series...

0

Fibonacci Series in C++ using While Loop

Before going to the program first let us understand what is a Fibonacci Series? Fibonacci Series:                                    Fibonacci series...

0

Factorial of a Number in C++ using while Loop

Before going to the program first let us understand what is a Factorial of a Number? Factorial of a Number:                    The factorial of a Number n, denoted by...