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 / akshay

#include<stdio.h>
#include<conio.h>
//Develo0ed by Akshay p.Joy
void main()
{
unsigned long int a,s=1;

int i,j,k,l,m,n;
scanf("%d%d",&m);


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


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

Is This Answer Correct ?    5 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c program for searching a student details among 10 student details

2038


what is different between auto and local static? why should we use local static?

1074


What is structure packing in c?

1024


Discuss the function of conditional operator, size of operator and comma operator with examples.

1093


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2162


What is the use of pragma in embedded c?

997


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

3472


What is the translation phases used in c language?

1053


Is javascript written in c?

1010


What is getch c?

1238


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1093


When is the “void” keyword used in a function?

1426


What are identifiers and keywords in c?

1030


Sir i need notes for structure,functions,pointers in c language can you help me please

2347


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

1056