saving . . . saved Square matrix has been deleted. Square matrix has been hidden .
Square matrix
Title
Question
#include <stdio.h>
void square()
{
  int x,square;
  printf("enter the number:");
  scanf("%d",&x);
  square=x*x;
  printf("square of the number is=%d",square);
int main()
{
  square();
}




By
J.puja Shree
ECE department irtt

C-and-Cpp Functions 05-06 min 50-60 sec 06-12-21, 10:23 p.m. pujajeeva01@gmail.com

Answers:

C:\cygwin64\bin>square_Program
enter the number:9
square of the number is=81
Its working fine.
07-12-21, 8:14 a.m. Rsenthil_1976


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


05-08-24, 2:50 p.m. 238T1A05D8


#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();
}
12-08-24, 2:50 p.m. Shalini_09


#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();
}
16-08-24, 4:36 p.m. 238T1A05F5


#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();
}
19-08-24, 2:40 p.m. nasreensk2005@gmail.com


Log-in to answer to this question.