Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answers were Sorted based on User's Feedback
Answer / shubham
#include<iostream.h>
#include<math.h>
void main()
{
int a,b,q,r;
long double d;
cout<<"Enter a ";
cin>>a;
d=pow(2,a);
cout<<"powered = "<<d;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
If r = 5, n=3 and if first pole has 2 flags, third pole has 1 flag, how many ways can the flags be arranged?
There are 6 red shoes & 4 green shoes . If two of red shoes are drawn what is the probability of getting red shoes
4 Answers 3i Infotech, Canara Bank, CMC, Geodesic, Mu Sigma,
If any1 have previous NIC Papers, plz send it to nads707@gmail.com....
Q) Susan wants to put up fencing around three sides of her rectangular yard and leave a side of 20 feet unfenced. If the yard has an area of 680 square feet, how many feet of fencing does she need? a) 38 b) 44 c) 72 d) 88 e) 97
Supposing a clock takes 7 seconds to strike 7. How long will it take to strike 10?
Please,let me know the RRB question papers for Junior Engg.Electrical & Electronics Engg post.Thank You
quants,logical,verbal
10. A sum of money amounts to Rs.8968/- in 3 years and Rs.9424/- in 4 years at 6% simple interest. What is the sum?
4 Answers Punjab National Bank, Subex,
One rectangular plate with lenght 8 inches, breadth 11inches and 2 inches thickness is there. What is the length of the circular rod with diameter 8 inches and equal to volume of rectangular plate?
From 7:00 AM to 11:00 AM it rained 2.25 inches. At 11:00 AM the rain increased to fall at a rate of 1.25 in. every two hours. How many inches of rain landed on the ground by 5:00 PM? a) 7 b) 9.75 c) 6 d) 3.25 e) 7.125 Also please provide the solution for this question .
3 machines can complete the work in 4,5, and 6 hours respectively. due to power failures they did the work alternatively. Then what is time taken to complete the work?
Find the next series: AD DP PL LV ?