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


Please Help Members By Posting Answers For Below Questions

i got 75% in all semester am i eligible for your company

1743


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2244


What is difference between stdio h and conio h?

890


What is sorting in c plus plus?

568


Differentiate between full, complete & perfect binary trees.

675






How do you redirect a standard stream?

628


How can I do graphics in c?

597


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1633


Mention four important string handling functions in c languages .

634


What do you know about the use of bit field?

614


can any one provide me the notes of data structure for ignou cs-62 paper

1708


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1574


Differentiate between the expression “++a” and “a++”?

709


Write the syntax and purpose of a switch statement in C.

631


What is a function simple definition?

624