Advertisement
KodingKid

C# Booleans - How fast is the car going?

May 23rd, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2. namespace yournamespace
  3. {
  4.     class yourclass
  5.     {
  6.         static void main(string[] args)
  7.         {
  8.             static bool void carspeed;
  9.             int maxspeed == 200;
  10.             if (car < maxspeed)
  11.                 Console.WriteLine("The car is not going full speed.")
  12.                 carspeed = false;
  13.             if (car == maxspeed)
  14.                 Console.WriteLine("The car is going full speed.")
  15.                 carspeed = true;
  16.             if else
  17.                 Console.WriteLine("No")
  18.                 carspeed = false;
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement