Write a program that takes a 5 digit number and calculates
2 power
that number and prints it.
Answer Posted / sushant shrivastava
include<math.h>
include<stdio.h>
int main()
{
int i,num;
printf("Enter the value of i");
scanf("%d",&i)
num=POW(i,2);
printf("%d%d",num);
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what is ur strangth & weekness
What is difference between structure and union in c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is c system32 taskhostw exe?
What should malloc(0) do?
When is a “switch” statement preferable over an “if” statement?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is f'n in math?
cavium networks written test pattern ..
Explain the difference between getch() and getche() in c?
What are data types in c language?
Why can arithmetic operations not be performed on void pointers?
write a progrmm in c language take user interface generate table using for loop?
Are c and c++ the same?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.