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
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
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What do you mean by recursion in c?
Why calloc is better than malloc?
what is use of malloc and calloc?
What are local static variables?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What are the types of functions in c?
What is register variable in c language?
What is the best organizational structure?
Explain how can I make sure that my program is the only one accessing a file?
What is the explanation for the dangling pointer in c?
What is meant by 'bit masking'?
Is main a keyword in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.