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
i got 75% in all semester am i eligible for your company
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
What is difference between stdio h and conio h?
What is sorting in c plus plus?
Differentiate between full, complete & perfect binary trees.
How do you redirect a standard stream?
How can I do graphics in c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Mention four important string handling functions in c languages .
What do you know about the use of bit field?
can any one provide me the notes of data structure for ignou cs-62 paper
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.
Differentiate between the expression “++a” and “a++”?
Write the syntax and purpose of a switch statement in C.
What is a function simple definition?