write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / suvi
#include<stdio.h>
void main()
{
float a,b;
scanf("%f",&a);
b=a*a;
printf("%.0f",b);
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Differentiate between a structure and a union.
Write a program to check prime number in c programming?
What does the file stdio.h contain?
what are bit fields in c?
Explain high-order bytes.
Why doesnt this code work?
What is a good way to implement complex numbers in c?
What is the use of pragma in embedded c?
Why do we write return 0 in c?
What is the difference between printf and scanf )?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
What is queue in c?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
What is fflush() function?