write a c/c++ program that takes a 5 digit number and
calculates 2 power that number and prints it?
Answer Posted / sudarshan
#include<stdio.h>
void main()
{
int a,b;
scanf("%d",&a);
b=a*a;
printf("%d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
What is the basic structure of c?
a program that can input number of records and can view it again the record
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is an endless loop?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Write a code on reverse string and its complexity.
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Explain how can I manipulate strings of multibyte characters?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What is the difference between test design and test case design?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What are the types of data files?
Which is more efficient, a switch statement or an if else chain?
What is extern keyword in c?