write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / sudarshan
#include<stdio.h>
void main()
{
int a,b;
scanf("%d",&a);
b=a*a;
printf("%d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
Explain the difference between malloc() and calloc() in c?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Write a program to check prime number in c programming?
What is modeling?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
How is actual parameter different from the formal parameter?
How does struct work in c?
What are the key features in c programming language?
What are all different types of pointers in c?
Why c is called a mid level programming language?
What is pointers in c?
Describe the modifier in c?
Why & is used in c?
write a program to print data of 5 five students with structures?
What is time complexity c?