4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.
Answer Posted / nitish kumar choudhary
u have to define int as long unsigned int to increase its
size..
normally int cant give u the answer.
void main()
{
long unsigned int res;
int a;
printf("Enter the 5 digit no.: ");
scanf("%d" ,&a);
printf("result is: %uL", a*a);
getch();
}
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What does c mean?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
In C, What is the #line used for?
What are extern variables in c?
What is the function of multilevel pointer in c?
What is line in c preprocessor?
Why do we use main function?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What are the advantages of using new operator as compared to the function malloc ()?
What is the sizeof () operator?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What does 3 mean in texting?
What is pointer to pointer in c with example?
What is difference between array and pointer in c?