View Single Post
Old 26-03-08, 05:50 PM   #3 (permalink)
query123
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 query123 is on a distinguished road
Re: C language - How to write a C program to find the power of 2 in a normal way and in single step?

#include<math.h>

pow(2,i); // 2 raise to i......i can have any value
query123 is offline   Reply With Quote