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


Please Help Members By Posting Answers For Below Questions

How to declare pointer variables?

683


Write a program to print all permutations of a given string.

638


What is maximum size of array in c?

580


How can I split up a string into whitespace-separated fields?

564


What are types of structure?

600






Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1455


What is the size of enum in c?

612


#include { printf("Hello"); } how compile time affects when we add additional header file .

1419


what is the format specifier for printing a pointer value?

609


define string ?

662


Explain how are portions of a program disabled in demo versions?

649


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.

2155


What is the role of && operator in a program code?

564


Can you subtract pointers from each other? Why would you?

556


What's the total generic pointer type?

608