Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Comment



Header file



Test expression



" ; " after loop



Working with switch case




Calculate power i.e., calculate xn



// AHF C PROGRAM SOLVING

//solving here ITERATIVES STATEMENTS type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int x,y,result; pf("Enter the base number : "); scanf("%d",&x); pf("\nEnter the power of the base number: "); scanf("%d",&y); result=pow(x,y); pf("\nThe output is: %d",result); return 0; }
OUTPUT:


© 2018 - All rights reserved