Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int photoNumber = int.Parse(Console.ReadLine());
- int day = int.Parse(Console.ReadLine());
- int month = int.Parse(Console.ReadLine());
- int year = int.Parse(Console.ReadLine());
- int hours = int.Parse(Console.ReadLine());
- int minutes = int.Parse(Console.ReadLine());
- int photoSizeInBytes = int.Parse(Console.ReadLine());
- int widhtPhoto = int.Parse(Console.ReadLine());
- int heightPhoto = int.Parse(Console.ReadLine());
- Console.WriteLine("Name: DSC_{0, 0:D4}.jpg", photoNumber);
- Console.WriteLine("Date Taken: {0, 0:D2}/{1, 0:D2}/{2, 0:D4} {3, 0:D2}:{4, 0:D2}",
- day, month, year, hours, minutes);
- // TODO: This place is for calculated size !!!!
- if (widhtPhoto < heightPhoto) Console.Write("Resolution: {0}x{1} (portrait)", widhtPhoto, heightPhoto);
- else if (widhtPhoto > heightPhoto) Console.Write("Resolution: {0}x{1} (landscape)", widhtPhoto, heightPhoto);
- else Console.Write("Resolution: {0}x{1} (square)", widhtPhoto, heightPhoto);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement