Power function in c programming language || pow(2,i)
C Programming Language Function in C Language (Article) Function in C Language (Program)
935Program:
#include #include void main() { int i,m; for(i=1; i<=10; i++) { m = pow(2,i); printf(" 2^%d = %d \n",i,m); } }
Output:
2^1 = 2 2^2 = 4 2^3 = 8 2^4 = 16 2^5 = 32 2^6 = 64 2^7 = 128 2^8 = 256 2^9 = 512 2^10 = 1024 Press any key to continue . . .
Explanation:
Power function in c programming language pow(2,i)
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.