daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace ConsoleApp2
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             var stringArr = Console.ReadLine().Split();
  11.             var arr = new double[stringArr.Length];
  12.  
  13.             for (int i = 0; i < arr.Length; i++)
  14.             {
  15.                 arr[i] = double.Parse(stringArr[i]);
  16.             }
  17.             var p = double.Parse(Console.ReadLine());
  18.  
  19.             for (int i = 0; i < arr.Length; i++)
  20.             {
  21.                 arr[i] *= p;
  22.             }
  23.  
  24.             for (int i = 0; i < arr.Length; i++)
  25.             {
  26.                 Console.Write(arr[i] + " ");
  27.             }
  28.         }
  29.     }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top