Advertisement
Finalist

Untitled

Feb 2nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp2
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.WriteLine("Обработка последовательности дробных чисел");
  10.  
  11. Console.Write("Введите кол-во последовательности ----> ");
  12. int i = Convert.ToInt32(Console.ReadLine());
  13. int accountNumbers = 0;
  14. Console.WriteLine("Введите числа: ");
  15. double numb;
  16. for (int j = 0; j < i; j++)
  17. {
  18. Double.TryParse(Console.ReadLine(), out numb);
  19. Console.WriteLine(numb + " ");
  20. accountNumbers++;
  21. }
  22. Console.WriteLine("всего чисел " + accountNumbers);
  23. Console.ReadKey();
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement