Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace TestConsole.Mathematic
- {
- public class VariableReturn
- {
- public double GetVariables()
- {
- Console.WriteLine("Podaj a");
- double x = Convert.ToDouble(Console.ReadLine());
- return x;
- }
- public List<double> ReturnVariables()
- {
- double a = GetVariables();
- double b = GetVariables();
- double c = GetVariables();
- return new List<double>{ a,b,c };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement