4) Write a program that takes a 5 digit number and
calculates 2 power
that number and prints it.
Answers were Sorted based on User's Feedback
Answer / deepshree sinha
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n,m
printf("enter any five digit number");
scanf("%d ",&n);
m=pow(2,n);
printf("m=%d",m);
getch();
}
Is This Answer Correct ? | 5 Yes | 4 No |
Answer / nitish kumar choudhary
u have to define int as long unsigned int to increase its
size..
normally int cant give u the answer.
void main()
{
long unsigned int res;
int a;
printf("Enter the 5 digit no.: ");
scanf("%d" ,&a);
printf("result is: %uL", a*a);
getch();
}
Is This Answer Correct ? | 3 Yes | 6 No |
Answer / sathishmani
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
a=12345;
printf("\n The Result is ",a*a);
getch();
}
Is This Answer Correct ? | 6 Yes | 18 No |
a program that can input number of records and can view it again the record
Write a program to exchange two variaables without temp
how to make program without <> in library.
How to write a program for swapping two strings without using 3rd variable and without using string functions.
Add Two Numbers Without Using the Addition Operator
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
How do you override a defined macro?
What are the languages are portable and platform independent?Why they are like that?
where do we use structure pointer?
Hai what is the different types of versions and their differences
What is s or c?
What is "Duff's Device"?