Advertisement
Tux1c

16348808

Jul 7th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3.     int red = 0, sum;
  4.  
  5.     Console.WriteLine("How many level are there?");
  6.     sum = int.Parse(Console.ReadLine());
  7.  
  8.     red = sum / 5;
  9.  
  10.     Console.WriteLine("There are {0} red levels and {1} white", red, sum - red);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement