Write a program that takes a 5 digit number and calculates 2
power
that number and prints it.
Answer / aravind
#include<stdio.h>
#include<math.h> /*I am not sure whether this lib fun is gud*/
int main()
{
int num=12345,result;
result=pow(12345,2);
printf("result=%d",result);
}
| Is This Answer Correct ? | 3 Yes | 4 No |
please give me some tips for the selection in TCS.
program for validity of triangle from 3 side
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
char ch=10;printf("%d",ch);what is the output
What is a rvalue?
how do you programme Carrier Sense Multiple Access
Explain what are its uses in c programming?
write an algorithm and c program to add two 2x2 matrics
What does %p mean?
Explain what are preprocessor directives?
Is a house a mass structure?
for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " and the output should be stored as " rs.20.00 " in a variable