Information for teachers 0 van 2 activiteiten opgelost
  1. About Time2Code Nog niet gelezen
  2. Getting Started with Time2Code on Dodona Nog niet opgelost
Volgende reeks Level 1 - Inputs, outputs and structure
Information for teachers

Getting Started with Time2Code on Dodona

Meld je aan om je oplossing in te dienen en feedback te krijgen.

using System; class Submission { static Random rng = new Random(); public static string FlipCoin() { // Generate outcome of flipping an unbiased coin return rng.Next(2) == 0 ? "heads" : "tails"; } public static void Main(string[] args) { Console.WriteLine(FlipCoin()); } }