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 are the benefits of c language?

0 Answers  


Explain what are header files and explain what are its uses in c programming?

0 Answers  


in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

2 Answers   NetApp,


If errno contains a nonzero number, is there an error?

0 Answers  


explain what are pointers?

0 Answers  






Write a program to interchange two variables without using the third variable?

17 Answers   Accenture, College School Exams Tests, Infotech,


Can you please explain the difference between strcpy() and memcpy() function?

0 Answers  


Explain the difference between malloc() and calloc() function?

0 Answers  


what is the difference between #include<> and #include”…”?

5 Answers  


Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));

6 Answers   TCS,


Can you add pointers together? Why would you?

0 Answers  


Is it better to use malloc() or calloc()?

0 Answers   Aspire, Infogain,


Categories