find the pblm..it was square every number left 5….please help me to solve it Question #include<stdio.h> void outnum(void); main() { printf(“Enter the number:”); outnum(); printf(“check”); } void outnum(void) { int num,ans; scanf(“%d”,&num); ans=pow(num,2); printf(“Square of the number is= %dn”,ans); return 0; } in progress 0 General Anup Sen 3 years 2 Answers 322 views 1
Answers ( 2 )
#include stdio.h
#include math.h
void outnum(void);
int main()
{
printf(“enter number”);
outnum();
return 0;
}
void outnum(void)
{
double x,y,z=2.00;
scanf(“%lf”,&x);
y=pow(x,z);
printf(“%lf”,y);
}
its working for me .