Write a C Program to Calculate to the Power









C-Programming, Power, Sumit Kar



#include<stdio.h>



#include<conio.h>



int main()



{



 int num,pow,res=1;



 printf("\nEnter number and power : ");



 scanf("%d %d",&num,&pow);



 while(pow>=1)



 {



  res=res*num;



  pow--;



 }



 printf("%d",res);



 return 0;



}











Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C