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
Define and explain about ! Operator?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What are the features of c languages?
How many levels of pointers can you have?
Can a pointer point to null?
Where we use clrscr in c?
What does %p mean?
What is a substring in c?
What is static and volatile in c?
Write a program to swap two numbers without using third variable in c?
What is data type long in c?
what is the difference between class and unio?
Is stack a keyword in c?
What will be the outcome of the following conditional statement if the value of variable s is 10?