C Program : Pow() Function
Code :
#include#include main() { float a, b, c; printf(" Enter the values of b and c : "); scanf(" %f %f ", &b, &c); a = pow(b, c); printf("%f to the power of %f is %f ", b, c, a); }
Input : Enter the values of b and c : 5 2
Output : 5.0000 to the power of 2.0000 is 25.0000
Tag :
C Language,
C Prog
0 Komentar untuk "C Program : print the power of a number using pow() function"