Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer Posted / anish
#include<stdio.h>
#include<maths.h>
#include<conio.h>
main()
{
int a,b;
printf("Enter 5 digit num");
scanf("%d",&a);
printf("the 5th power of %d is %dpow5",a,a);
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Find the result of the following _expression if, M denotes modulus operation, R denotes round-off, T denotes truncation: M(373,5)+R(3.4)+T(7.7)+R(5.8)
An apple seller is having some apples. He is selling half of the apple what he has plus half the apple to the first customer. In the same way he sells the remaining apple to 7 customers. After selling to 7 customers, he has no apples with him.
If 8 men are required to complete a work in 6 days, how many men will be required to complete the same work in ½ day?
in a single throw of dice ,the chance of throwing a total of 3 is
A cloth merchant claims to sell is material at cost price but uses a scale which reads 1 meter for every 95 centimeter. Find the gain percent?
If A=Z, B=Y, C=X, .......... Z=A, Then SOUR = ?
Now i am doing RHCE (Red Hat Certified Engineer). Please give some interview questions of linux.
A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books. He kept 15% of the money for travelling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.
A sequence is given. You should find out error & write correct 1 2 5 10 13 26 29 48.
Fallin height is proportional to square of the time. One object falls 64 cm in 2 sec. than in 6 sec. from how much height the object will fall?
How many rational numbers are there between 0 & 5?
If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors Find the memory required for this?
if 8x+4y=6 and 4x+5y=7, x+y equlals
write a program that prompts the user to enter three sides of a triangle and prints whether it is a right triangle or not.
A man walks around a rectangle. The time taken by him in travelling the length is twice as taken in travelling the breadth of the rectangle. If the perimeter of the rectangle is 300 mts, what is the area of the rectangle?