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 |
Business Analytics What's the difference between logistic and linear regression? How do you avoid local minima?
Find the correct meaning of the following phrase: A man of straw
modulo(373,7)+round(5.8)+truncat(7.2)-round(3.4) = ? i exactly don't remember the truncate function.but the function was where we skip the '.' part.
OUT OF 111 MARBLES ONE IS NOT OF SAME WEIGHT. HOW TO FIND AND GIVE THE MIN. NO OF STEPS
Find the correct meaning of the following phrase: To bite the dust
a cylinder ingot 6cms in diameter and 6 cms in height is and spheres all of the samesize are made from the material obtained.what is the diameter of each sphere?
27.) Given that the cost price of 10 oranges is equal to the cost price of 1 kg of apples and the cost price of 12 apples is equal to the cost price of 1 kg of oranges. If the selling price of 15 oranges is equal to the selling price of 1 kg of apples, then the selling price of 1 kg of oranges is equal to selling price of (Assume that all the apples are identical and this holds true for the oranges as well.) a) 8 apples b) 9 apples c) 10 apples d) 12 apples
If the area of the sqaure is increased by 69 % how much the length of the side will increase?
a sum 's' is devided into 4 parts.second person gets Rs 10 more than first.3rd person is Rs 10 more than second, 4th is 10 more than 3rd. how much amount do 1st person get?
22 Answers Elin, Infosys, Wipro,
Direction for Qn 1-8 Ans A using I only Ans B using II only Ans C using both I and II Ans D not solvable 1. Raman and Gaurav Brought eggs from a vendor. How many eggs were bought by each of them i. Raman bought half as many as Gaurav ii. The dealer had a stock of 500 eggs at the beginning of day 2. What is the age of Ramprakash? i. Ramprakash was born when his father was 26 yrs old ii. Ramprakash's mothers age is 3yrs less than his father's 3. How much time is reqd for downloading the software? i. The Data transfer rate is 6 kbps ii. The size of the software is 4.5 megabytes 4. Sanjay and Vijay started their journey from Mumbai to Pune. Who reached Pune first? i. Sanjay overtakes two times Vijay and Vijay overtakes Sanjay two times ii. Sanjay started first 5. Is the GDP of country X higher than Country Y? i. GDP's of X and Y has been increasing at a compounded annual growth rate of 5% and 6% over he past 5 yrs ii. 5 yrs ago GDP of X was 1.2 times Y 6. A boat can ferry 1500 passengers across a river in 12 hrs. How many round trips does it make during the journey? i. The boat can carry 400 passengers at a time ii. During its journey, the boat takes 40 mins time each way and 20 mins waiting time at each end. 7. What are the values of m and n? i. n is an even integer, m is odd integer and m is greater than n. ii. The product of m and n is 30 8. How much is the weight of 20 mangoes and 30 oranges? i. 1 orange weighs twice that of 1 mango ii. 2 mangoes and 3 oranges weigh 2 kg
A train 100 meter long takes 3 second to cross a man walking at the rate of 6km/hr in a direction opposite to that of the train. Find the speed of the train.
1. 10 men and 10 women are there, they dance with each other, is there possibility that 2 men are dancing with same women and vice versa? a) 22 b) 20 c) 10 d) none