Advertisement
RoshHoul

Task2 07

Sep 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string[] dimentions = Console.ReadLine().Split(' ');
  10.             int clothS = Convert.ToInt32(dimentions[0]) * Convert.ToInt32(dimentions[1]);
  11.             int pocketS = Convert.ToInt32(dimentions[2]) * Convert.ToInt32(dimentions[3]);
  12.  
  13.             Console.WriteLine(clothS / pocketS + " " + clothS % pocketS);
  14.             Console.ReadKey();
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement