# Convert hectare to square yard

Here given code implementation process.

``````//C Program
//Convert hectare to square yard
#include <stdio.h>
//Find the square yard of given hectare
void hectare_to_square_yard(double hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
double square_yard = (hectare * 11960);
printf("[%lf] Hectare is approximate equal to [%lf] Square Yard \n", hectare, square_yard);
}
int main()
{
//Simple test
hectare_to_square_yard(1);
hectare_to_square_yard(25.6);
hectare_to_square_yard(70);
return 0;
}``````

#### Output

``````[1.000000] Hectare is approximate equal to [11960.000000] Square Yard
[25.600000] Hectare is approximate equal to [306176.000000] Square Yard
[70.000000] Hectare is approximate equal to [837200.000000] Square Yard``````
``````/*
Java program
Convert hectare to square yard
*/
class MyMath
{
//Find the square yard of given hectare
void hectare_to_square_yard(double hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
double square_yard = (hectare * 11960);
System.out.print("[" + hectare + "] Hectare is approximate equal to [" + square_yard + "] Square Yard \n");
}
public static void main(String[] args)
{
MyMath obj = new MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
}
}``````

#### Output

``````[1.0] Hectare is approximate equal to [11960.0] Square Yard
[25.6] Hectare is approximate equal to [306176.0] Square Yard
[70.0] Hectare is approximate equal to [837200.0] Square Yard``````
``````//Include header file
#include <iostream>

using namespace std;
/*
C++ program
Convert hectare to square yard
*/
class MyMath
{
public:
//Find the square yard of given hectare
void hectare_to_square_yard(double hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
double square_yard = (hectare * 11960);
cout << "[" << hectare << "] Hectare is approximate equal to [" << square_yard << "] Square Yard \n";
}
};
int main()
{
MyMath obj = MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
return 0;
}``````

#### Output

`````` Hectare is approximate equal to  Square Yard
[25.6] Hectare is approximate equal to  Square Yard
 Hectare is approximate equal to  Square Yard``````
``````/*
C# program
Convert hectare to square yard
*/
//Include namespace system
using System;
class MyMath
{
//Find the square yard of given hectare
void hectare_to_square_yard(double hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
double square_yard = (hectare * 11960);
Console.Write("[" + hectare + "] Hectare is approximate equal to [" + square_yard + "] Square Yard \n");
}
public static void Main(String[] args)
{
MyMath obj = new MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
}
}``````

#### Output

`````` Hectare is approximate equal to  Square Yard
[25.6] Hectare is approximate equal to  Square Yard
 Hectare is approximate equal to  Square Yard``````
``````<?php
/*
Php program
Convert hectare to square yard
*/
class MyMath
{
//Find the square yard of given hectare
function hectare_to_square_yard(\$hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
\$square_yard = (\$hectare * 11960);
echo "[". \$hectare ."] Hectare is approximate equal to [". \$square_yard ."] Square Yard \n";
}
}

function main()
{
\$obj = new MyMath();
//Simple test
\$obj->hectare_to_square_yard(1);
\$obj->hectare_to_square_yard(25.6);
\$obj->hectare_to_square_yard(70);
}
main();``````

#### Output

`````` Hectare is approximate equal to  Square Yard
[25.6] Hectare is approximate equal to  Square Yard
 Hectare is approximate equal to  Square Yard``````
``````/*
Node Js program
Convert hectare to square yard
*/
class MyMath
{
//Find the square yard of given hectare
hectare_to_square_yard(hectare)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
var square_yard = (hectare * 11960);
process.stdout.write("[" + hectare + "] Hectare is approximate equal to [" + square_yard + "] Square Yard \n");
}
}

function main()
{
var obj = new MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
}
main();``````

#### Output

`````` Hectare is approximate equal to  Square Yard
[25.6] Hectare is approximate equal to  Square Yard
 Hectare is approximate equal to  Square Yard``````
``````# Python 3 program
# Convert hectare to square yard

class MyMath :
# Find the square yard of given hectare
def hectare_to_square_yard(self, hectare) :
#  Calculate square yard by using hectare
#  Formula : (hectare * 11960 )
square_yard = (hectare * 11960)
print("[", hectare ,"] Hectare is approximate equal to [", square_yard ,"] Square Yard \n", end = "")

def main() :
obj = MyMath()
# Simple test
obj.hectare_to_square_yard(1)
obj.hectare_to_square_yard(25.6)
obj.hectare_to_square_yard(70)

if __name__ == "__main__": main()``````

#### Output

``````[ 1 ] Hectare is approximate equal to [ 11960 ] Square Yard
[ 25.6 ] Hectare is approximate equal to [ 306176.0 ] Square Yard
[ 70 ] Hectare is approximate equal to [ 837200 ] Square Yard``````
``````# Ruby program
# Convert hectare to square yard

class MyMath

# Find the square yard of given hectare
def hectare_to_square_yard(hectare)

#  Calculate square yard by using hectare
#  Formula : (hectare * 11960 )
square_yard = (hectare * 11960)
print("[", hectare ,"] Hectare is approximate equal to [", square_yard ,"] Square Yard \n")
end
end
def main()

obj = MyMath.new()
# Simple test
obj.hectare_to_square_yard(1)
obj.hectare_to_square_yard(25.6)
obj.hectare_to_square_yard(70)
end
main()``````

#### Output

`````` Hectare is approximate equal to  Square Yard
[25.6] Hectare is approximate equal to [306176.0] Square Yard
 Hectare is approximate equal to  Square Yard
``````
``````/*
Scala program
Convert hectare to square yard
*/
class MyMath
{
//Find the square yard of given hectare
def hectare_to_square_yard(hectare: Double): Unit = {
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
var square_yard: Double = (hectare * 11960);
print("[" + hectare + "] Hectare is approximate equal to [" + square_yard + "] Square Yard \n");
}
}
object Main
{
def main(args: Array[String]): Unit = {
var obj: MyMath = new MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
}
}``````

#### Output

``````[1.0] Hectare is approximate equal to [11960.0] Square Yard
[25.6] Hectare is approximate equal to [306176.0] Square Yard
[70.0] Hectare is approximate equal to [837200.0] Square Yard``````
``````/*
Swift program
Convert hectare to square yard
*/
class MyMath
{
//Find the square yard of given hectare
func hectare_to_square_yard(_ hectare: Double)
{
// Calculate square yard by using hectare
// Formula : (hectare * 11960 )
let square_yard: Double = (hectare * 11960);
print("[", hectare ,"] Hectare is approximate equal to [", square_yard ,"] Square Yard \n", terminator: "");
}
}
func main()
{
let obj: MyMath = MyMath();
//Simple test
obj.hectare_to_square_yard(1);
obj.hectare_to_square_yard(25.6);
obj.hectare_to_square_yard(70);
}
main();``````

#### Output

``````[ 1.0 ] Hectare is approximate equal to [ 11960.0 ] Square Yard
[ 25.6 ] Hectare is approximate equal to [ 306176.0 ] Square Yard
[ 70.0 ] Hectare is approximate equal to [ 837200.0 ] Square Yard``````

## Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.