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 ReverseArray
- {
- class ReverseArray
- {
- static void Main(string[] args)
- {
- var nums = Console.ReadLine().Split(' ').Select(double.Parse).ToArray();
- foreach (var num in nums)
- {
- var rounded = Math.Round(num, MidpointRounding.AwayFromZero);
- Console.WriteLine(num+"=>"+rounded);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement