Advertisement
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 _02
- {
- class Program
- {
- static void Main(string[] args)
- {
- int holeW = int.Parse(Console.ReadLine());
- int holeH = int.Parse(Console.ReadLine());
- int pictureSide = int.Parse(Console.ReadLine());
- int numberPictures = int.Parse(Console.ReadLine());
- int holeSize = holeH * holeW;
- int pictureSize = pictureSide * pictureSide;
- int allPicturesSize = pictureSize * numberPictures;
- if (holeSize < allPicturesSize )
- {
- Console.WriteLine(
- "The pictures don't fit in the hole. Picture area is {0} bigger than hole area.", allPicturesSize - holeSize);
- }
- else
- {
- Console.WriteLine("The pictures fit in the hole. Hole area is {0} bigger than pictures area.", holeSize - allPicturesSize);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement