1. Course
  2. Functions A
  3. Function to calculate double a number

Function to calculate double a number


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that implements a function called Double to calculate and return double an integer. You must first request the number from the user.

Input

  1. 4

Output

  1. 8

Solution

Functions A

7 / 9

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising


CookieOwn and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.