Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace TestConsole.Mathematic
  6. {
  7.         public class VariableReturn
  8.     {
  9.         public double GetVariables()
  10.         {
  11.             Console.WriteLine("Podaj a");
  12.             double x = Convert.ToDouble(Console.ReadLine());
  13.             return x;
  14.         }
  15.         public List<double> ReturnVariables()
  16.         {
  17.             double a = GetVariables();
  18.             double b = GetVariables();
  19.             double c = GetVariables();
  20.             return new List<double>{ a,b,c };
  21.         }
  22.        
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement