power function in c programming language
C Programming Language Function in C Language (Article) Function in C Language (Program)
792Program:
#include #include void main() { int i,m; for(i=1; i<=10; i++) { m = pow(i,2); printf(" %d^2 = %d \n",i,m); } }
Output:
1^2 = 1 2^2 = 4 3^2 = 9 4^2 = 16 5^2 = 25 6^2 = 36 7^2 = 49 8^2 = 64 9^2 = 81 10^2 = 100 Press any key to continue . . .
Explanation:
power function in c programming language
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.