MuffinMonster

Class Tasks 3#

Sep 2nd, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int per, wheels, total;
  14.             Console.WriteLine("Enter the ammount of wheels per vehicle");
  15.             per = int.Parse(Console.ReadLine());
  16.             Console.WriteLine("Enter the ammount of wheels you have");
  17.             wheels = int.Parse(Console.ReadLine());
  18.             total = wheels / per;
  19.             Console.WriteLine("With this ammount of wheels you can build " + total + " vehicles");
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Add Comment
Please, Sign In to add comment