Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Обработка последовательности дробных чисел");
- Console.Write("Введите кол-во последовательности ----> ");
- int i = Convert.ToInt32(Console.ReadLine());
- int accountNumbers = 0;
- Console.WriteLine("Введите числа: ");
- double numb;
- for (int j = 0; j < i; j++)
- {
- Double.TryParse(Console.ReadLine(), out numb);
- Console.WriteLine(numb + " ");
- accountNumbers++;
- }
- Console.WriteLine("всего чисел " + accountNumbers);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement