write a program that a 5 digit number and calculates 2
power that number and prints it.
Answer Posted / ayushi rastogi
/* We assume that user enter 5 digit No */
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
double No,length=2;
double pwrNo;
printf("Please Enter the 5 digit No.:");
printf("\n");
scanf("%d",&No);
pwrNo=pow(No,2);
printf("\n");
printf("Power of %u No is %u",No,pwrNo);
}
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
State the difference between delete and delete[].
What are c++ redistributables?
Please explain class & object in c++?
What does asterisk mean in c++?
What is the difference between passing by reference and passing a reference?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
What are maps in c++?
What is the use of object in c++?
Can we use clrscr in c++?
What is difference between class and structure in c++?
What is the full form of stl in c++?
Explain container class.
How many types of classes are there in c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is pointer to member?