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
Anup Sen 8 months 2 Answers 141 views 1

Answers ( 2 )

  1. #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);
    }

Leave an answer