#include<stdio.h>
#include<conio.h>
int sqrt(int num);
int cuberoot(int num);
void main()
{
clrscr();
int num ,s,c;
printf("enter the number");
scanf("%d",&num);
s=num*num;
printf("\n%d",s);
c=num*num*num;
printf("%d",c);
getch();
}
int sqrt(int num)
{
return(num * num);
}
int cuberoot (int num)
{
return(num * num * num);
}
0 Comment to "To find square and cube roots of a number without using the sqrt and pow functions?"
Post a Comment