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
How does selection sort work in c?
What are the benefits of c language?
How can I generate floating-point random numbers?
Explain what are header files and explain what are its uses in c programming?
Explain which function in c can be used to append a string to another string?
What is modeling?
What is extern variable in c with example?
When we use void main and int main?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Can we assign integer value to char in c?
What do you understand by normalization of pointers?
Explain how can you avoid including a header more than once?
Explain what is the difference between #include and #include 'file' ?
What are linked lists in c?
What are the different properties of variable number of arguments?