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
How to declare pointer variables?
Write a program to print all permutations of a given string.
What is maximum size of array in c?
How can I split up a string into whitespace-separated fields?
What are types of structure?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the size of enum in c?
#include
what is the format specifier for printing a pointer value?
define string ?
Explain how are portions of a program disabled in demo versions?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
What is the role of && operator in a program code?
Can you subtract pointers from each other? Why would you?
What's the total generic pointer type?