Answers:
C:\cygwin64\bin>square_Program
enter the number:9
square of the number is=81
Its working fine.
#include<stdio.h>
#include<conio.h>
void square()
{
int x ,square;
printf("enter the x value");
scanf("%d",&x);
square=x*x;
printf("square=%d",square);
}
void main()
{
square();
}
#include<stdio.h>
#include<conio.h>
void square()
{
int x ,square;
printf("enter the x value");
scanf("%d",&x);
square=x*x;
printf("square=%d",square);
}
void main()
{
square();
}
#include<stdio.h>
#include<conio.h>
void square()
{
int x ,square;
printf("enter the x value");
scanf("%d",&x);
square=x*x;
printf("square=%d",square);
}
void main()
{
square();
}
#include<stdio.h>
#include<conio.h>
void square()
{
int x ,square;
printf("enter the x value");
scanf("%d",&x);
square=x*x;
printf("square=%d",square);
}
void main()
{
square();
}
Login to add comment