Tagged: for loop

14

C program for Sine Series

Before going to the program for Sine Series first let us understand what is a Sine Series? Sine Series:                 Sine Series is a series which is used to find the value...

0

Prime number or Not in C using For 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...

8

Reverse of a Number using For loop in C

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

0

Reverse of a Number using For loop in C++

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

0

Fibonacci Series in C using For Loop

Before going to the program first let us understand what is a Fibonacci Series? Fibonacci Series:                   Fibonacci series is nothing but a Series of Numbers which...

1

Fibonacci Series in C++ using For Loop

Before going to the program first let us understand what is a Fibonacci Series? Fibonacci Series:                   Fibonacci series is nothing but a Series of Numbers which...

1

Factorial of a Number in C++ using For 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...

0

Factorial of a Number in C using For 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...