Write a program that takes a 5 digit number and calculates
2 power that number and prints it(should not use big
integers and exponential functions)
Answer Posted / nitin katakdound
int main(int argc, char *argv)
{
long two_power, five_digit_number;
if(scanf("%ld",&five_digit_number)){
two_power = five_digit_number*five_digit_number;}
printf("\n 2 power of that number is %ld",two_power);
return 0;
}
| Is This Answer Correct ? | 13 Yes | 29 No |
Post New Answer View All Answers
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is the difference between strcpy() and memcpy() function in c programming?
Explain high-order bytes.
What are the advantages and disadvantages of a heap?
What is a memory leak? How to avoid it?
What are the usage of pointer in c?
Explain c preprocessor?
Why C language is a procedural language?
What is switch in c?
Write a program to print fibonacci series without using recursion?
If you know then define #pragma?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is the scope of local variable in c?
What is a rvalue?
What is multidimensional arrays