This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Write a C Program to Reverse a Number using while loop

Write a C Program to Reverse a Number using while loop


In this post we will discuss Program to Reverse a Number using while loop. In this program, we will supply an integer value, in the output we will get the reverse of the entered number.

Suppose you enter a number as 3246 then the output of the program will be 6423

Program to Reverse a Number using while loop 1


main()
{
int n, s;
printf("Enter Number ");
scanf("%d",&n);
s = 0;
while(n > 0)
{
s = s*10;
s = s + (n%10);
n = n / 10;
}
printf("Reverse number is: %d",s);
}

Output

Enter Number 234
Reverse number is 432





Write a program to sum the digits of a number in C Language

Write a program to sum the digits of a number in C Language.

program to sum the digits of a number  1
program to sum the digits of a number 

main()
{
int n, s=0, m;
printf("Enter the Number");
scanf("%d",&n);
while(n>0)
{
m=n%10;
s=s+m;
n=n/10;
}
printf("Sum of digits = %d",s);
}

Write a program to calculate factorial of a number in C language usingfor loop

Write a program to calculate factorial of a number in C language using for loop


This is a famous C language program while learning C language programming. Many times factorial of a number program is asked in exams at board levels and university levels.
factorial of a number

factorial of a number 



Factorial of a number can be calculated mathematically by multiplying all the natural numbers starting from 1 up to the number, whose factorial is to be calculated.

For example : Factorial of 4 can be calculated by multiplying natural numbers from 1 to 4, like 1x2x3x4=24

void main()
{
int f=1, i, n;
printf("Enter a positive integer");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
f=f*i;
}
printf("Factorial = %d", f);
}


write a program to generate the Fibonacci series in c language

Write a Program to Generate the Fibonacci Series in C Language


Fibonacci series program is one the popular program among learners of any programming language. In fibonacci series we have terms as :   1        1        2        3       5      8   and so on.
Program to Generate the Fibonacci Series 1

Program to Generate the Fibonacci Series



The first two terms are one, and third term is the sum of term 1 and term 2, and similarly fourth term is the sum of term 2 and term 3 and so on.


/* Program for Fibonacci Series in C Language */


#include<stdio.h>

main()

{

int n, a = 1, b = 1, c, i;

printf("Enter the number of terms\n");

scanf("%d",&n);

printf("%d\t%d\t",a,b);

for ( i = 1 ; i < n-2 ; i++ )

{

c = a + b;

printf("%d\n",c); a = b; b = c;

}

}

 

Top 10 Best Winter Vacation Spots in the World

Top 10 Best Winter Vacation Spots in the World


Everyone Plans to visit Hill stations in Summer. What are the Top 10 Best Winter Vacation Spots in the World ? We have tried to mention Top 10 Best Winter Vacation Spots in the World  in this post as per our point of view.

Mussoorie


Mussoorie is Famous Hill station in Summer. It is in the state of Uttarakhand, in Dehradoon District.

Mussoorie is more popular by the name  Queen of Hills. Mussoorie is at a distance of 34 kms from Dehradun and  2003 meters above sea-level. Mussoorie is popular more in north India as hill station. 

Mussoorie  gained its fame because of its natural beauty and cool weather. In summer vacations a lot of tourists visits Mussoorie from all over India. It is connected by road dehradun. The hill station is also popular in winters too because of snow fall in the area.

The cool weather and scenic beauty attracts visitor to visit here frequently. There are  a lot of hotels in the area , so staying here is not a big issue. There are a lot of shops and eating points at mall road of Mussoorie.


Municipal Garden


It is  also known as Company Bagh. Municipal Garden is located in the Happy Valley area. This Garden us maintained by Garden Association of the destination. It is also known as Botanical Garden.  the municipal garden is situated near about 3 kms from the popular library point.

There are a lot of flowering plants. You can enjoy the chirping of beautiful colored birds here.  Near about 800 species of flowers are planted here. In the municipal garden , there is provision of plants nursery , where you can buy these plants. Lush green carpet of lawns en Jharipani Fall

It is located near 8 kms from Mussoorie. One can go by car or bus to this beautiful place. Jharipani Fall is near the village Jharipani. The only five star hotel of Mussoorie is also near Jharipani and serves as a landmark.

Bhatta Fall


Bhatta Fall is famous spot near Mussoorie. It is near 7km from Mussoorie city. Bhatta Fall is a natural water fall.

Kempty Fall

Kempty Falls are at 13 km from Mussoorie. It is one of the most famous place of Mussoorie. Almost every tourist who visit Mussoorie also visit Kempty Fall.

Other Famous Places Near Mussoorie

  • Nag Devta Temple

  • Mussoorie Lake

  • Jwalaji Temple

  • Clous End

  • Naga Tibba

  • Dhanolti 

  • Surkhanda Devi

  • Gun Hill

  • Camel's Back Road

Other Places of interest are listed below :

SHIMLA

KASAULI

KULLU

MANALI

KHAJJIAR

PALAMPUR

NAINITAL

OOTY

MOUNT ABU

Mount Abu is famous hill station in the state of Rajasthan. Mount Abu is situated in Sirohi District in Aravali Range. It is near the border of Gujrat state.
(we will update this post shorly, thanks for visiting)