Asked by 
                                                AL MaMun                                                (4 Golds)                                                    
                                                    Friday, 31 Jul 2020, 04:47 PM                                                
                                                at (Education 
                                                 
                                                Tutorials)
                                                
                                                                                                                                            
                                            
                                            
                                              
                                         | 
                                    
| 
                                             | 
                                        
                                             | 
                                        
                                                                                                    
  | 
                                        
Implementing x power n using recursion :
 #include<stdio.h> #include<math.h> int power(int x, int n) { if(n) { return x * power(x, n-1); } return 1; } int main() { int x, n, result; scanf("%d%d", &x, &n); result=power(x, n); printf("%d", result); return 0; } Answered by AL MaMun (4 Golds) Friday, 31 Jul 2020, 04:48 PM  |