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
c program for searching a student details among 10 student details
what is different between auto and local static? why should we use local static?
What is structure packing in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is the use of pragma in embedded c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
What is the translation phases used in c language?
Is javascript written in c?
What is getch c?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
When is the “void” keyword used in a function?
What are identifiers and keywords in c?
Sir i need notes for structure,functions,pointers in c language can you help me please
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above