Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program that takes a 5 digit number and calculates
2 power
that number and prints it.

Answer Posted / usha

#include<stdio.h>

void main()
{
unsigned long int s=1;

int n;
scanf("%d%d",&n);


for(int i=0; i<n; i++)
{
s=s*2;
}


printf("result %ld",s);
getch();
}

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the difference between a 'copy constructor' and a 'assignment operator' in C?

1036


How can I find the modification date of a file?

1221


What are categories used for in c?

1037


Why main is used in c?

1014


What is a c token and types of c tokens?

1014


Which is best linux os?

974


What is difference between Structure and Unions?

1189


What are the types of i/o functions?

1256


please give me some tips for the placement in the TCS.

2056


What are the 5 types of organizational structures?

1022


Write a program to swap two numbers without using a temporary variable?

1074


What are the different properties of variable number of arguments?

1106


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1955


What is the difference between call by value and call by reference in c?

1116


What are header files in c?

1025