Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int per, wheels, total;
- Console.WriteLine("Enter the ammount of wheels per vehicle");
- per = int.Parse(Console.ReadLine());
- Console.WriteLine("Enter the ammount of wheels you have");
- wheels = int.Parse(Console.ReadLine());
- total = wheels / per;
- Console.WriteLine("With this ammount of wheels you can build " + total + " vehicles");
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment