Attachment 'Uge48.cs'

Download

   1 using System;
   2 
   3 namespace UdregnerConsole
   4 {
   5     class Program
   6     {
   7         static void Main(string[] args)
   8         {
   9             //Lav et program som udvælger to tilfældige tal mellem 0 og 100
  10             Random rnd = new Random();
  11 
  12             int tal1 = rnd.Next(0, 100);
  13             //lav selv tal2
  14 
  15             //læg de to tal sammen ved +,-,*,/ (plus,minus,gange,divider)
  16             //Præsenter regnestyk for brugeren med de to tal og resultat
  17             Console.WriteLine($"Regnestyk: {tal1} + {tal2} = {tal1 + tal2}");
  18             //lav for -,*,/
  19 
  20 
  21             //udvid med en loop der gentager 10 gange.
  22             //Ændre så loop først viser 10 plus stykker, derefter 10 minus stykker osv.
  23 
  24             //Bonus opgave. lav et program som viser en tilfældig tabel mellem 1 og 10
  25             //Hint brug en for loop som køre mellem 1 og 10 til at gange med
  26 
  27 
  28         }
  29     }
  30 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2021-10-05 15:57:14, 0.3 KB) [[attachment:Benson.txt]]
  • [get | view] (2021-10-27 06:16:30, 96.2 KB) [[attachment:PasswordGenerator uge 43.zip]]
  • [get | view] (2021-11-09 16:30:59, 3.1 KB) [[attachment:Uge44.cs]]
  • [get | view] (2021-11-16 16:05:55, 4.5 KB) [[attachment:Uge46.cs]]
  • [get | view] (2021-11-30 07:36:13, 0.9 KB) [[attachment:Uge48.cs]]
  • [get | view] (2021-09-21 11:26:43, 25.2 KB) [[attachment:if_program.jpeg]]
  • [get | view] (2021-10-04 10:03:02, 200.6 KB) [[attachment:loops.jpg]]
  • [get | view] (2021-11-30 07:33:48, 0.9 KB) [[attachment:uge48.cs]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.