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 ArraysLab
- {
- class Program
- {
- static void Main(string[] args)
- {
- var stringArr = Console.ReadLine().Split(' ');
- var arr = new double[stringArr.Length];
- for(int i = 0; i < arr.Length; i++)
- {
- arr[i] = double.Parse(stringArr[i]);
- }
- var p = double.Parse(Console.ReadLine());
- for(int i =0; i < arr.Length; i++)
- {
- arr[i] *= p;
- Console.Write(arr[i] + " ");
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment