Write a program that takes a 5 digit number and calculates
2 power
that number and prints it.
Answer Posted / akshay
#include<stdio.h>
#include<conio.h>
//Develo0ed by Akshay p.Joy
void main()
{
unsigned long int a,s=1;
int i,j,k,l,m,n;
scanf("%d%d",&m);
for(i=0;i<2;++i)
{
s=s*m;
}
printf("result %ld",s);
getch();
}
| Is This Answer Correct ? | 5 Yes | 11 No |
Post New Answer View All Answers
What is else if ladder?
What is a constant and types of constants in c?
Explain what is the difference between a string and an array?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
How do I use strcmp?
Can 'this' pointer by used in the constructor?
What is the benefit of using an enum rather than a #define constant?
What is property type c?
Why is c called a structured programming language?
What is sizeof int in c?
Is exit(status) truly equivalent to returning the same status from main?
What is context in c?
Do you know what are bitwise shift operators in c programming?
What are the different categories of functions in c?
given post order,in order construct the corresponding binary tree