Write a program that takes a 5 digit number and calculates 2
power that number and prints it.



Write a program that takes a 5 digit number and calculates 2 power that number and prints it...

Answer / srikanth u

data num;
digit=today();
power=digit*digit;
run;
proc print data=num;
run;

I hope it will be the answer, if its wrong, please let me know the correct way.

Thank you.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

What is the use of getchar functions?

0 Answers  


Write a C program to count the number of email on text

0 Answers  


Write a program for finding factorial of a number.

0 Answers   Tech Mahindra,


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

9 Answers  


hi send me sample aptitude papers of cts?

0 Answers  






The difference between printf and fprintf is ?

0 Answers   Baan Infotech,


What is the use of pointers in C?

0 Answers   Impetus, Motorola, Tavant Technologies, Virtusa,


which operator is known as dummy operator in c?

2 Answers   Wipro,


How can I use a preprocessorif expression to ?

0 Answers  


Is that possible to store 32768 in an int data type variable?

0 Answers  


What is array of pointers to string?

0 Answers  


what is the output of the below code? main( ) { printf ( "\nOnly stupids use C?" ) ; display( ) ; } display( ) { printf ( "\nFools too use C!" ) ; main( ) ; }

3 Answers  


Categories