The main point to remember is :
For example the cube of 2=2*2*2.Hence the result will be displayed eight.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
int cube(int); | |
int main() | |
{ | |
int a,result; | |
printf("enter the num whose cube is to be find"); | |
scanf("%d",&a); | |
result=cube(a); | |
printf("\n the cube of the number entered is %d",result); | |
getch(); | |
} | |
int cube(int n) | |
{ | |
return(n*n*n); | |
} |
there is no use of recursion in that program
ReplyDeleteAre lwda function bta ke reacursion heading kya gaand marane ke liye dalta hai chodu lwda bjosdike
ReplyDeleteLwda ke baal ek to aadha dimag vaise hi kharab hai lwda sala jhutya
ReplyDeleteBhai aise galat mt dala kro yaar sorry bhai gussa me bol dala sorryy
ReplyDelete