# Function Double - Practice Exercises C# Sharp

## Lesson 5:

## Functions

## Exercise 5.8:

## Function Double

## Objetive:

## Create a function named "Double" to calculate and return an integer number doubled. For example. Double(7) should return 14.

## Source Code:

```
using System;
public class Exercise004
{
public static int Double(int number)
{
return number * 2;
}
public static void Main()
{
Console.Write("Enter a number: ");
int number = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Double of {0} is {1}", number, Double(number));
}
}
```

Exercisey
5.8