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 static variable in c?

0 Answers  


char ch="{'H','I',0};printf("%s",ch);what is output

9 Answers   Accenture,


Explain what are binary trees?

0 Answers  


why do we use pointer instead directly acessing the data?

2 Answers  


What is variable initialization and why is it important?

0 Answers  






b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720

1 Answers   HCL,


List some of the static data structures in C?

0 Answers  


Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

0 Answers   TCS,


Explain what is operator promotion?

0 Answers  


write a program to arrange the contents of a 1D array in ascending order

4 Answers  


write a program for even numbers?

19 Answers   TCS,


main() { clrscr(); } clrscr();

6 Answers   ME, Wipro,


Categories