Advertisement
ntamas

cím szerinti paraméterátadás

Nov 18th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace orai1118
  7. {
  8.   class Program
  9.   {
  10.     static int kivon(int x, int y, ref int z)
  11.     {
  12.       z = y - x;
  13.       return x-y;
  14.     }
  15.     static void Main(string[] args)
  16.     {
  17.       int a = Convert.ToInt32(Console.ReadLine());
  18.       int b = Convert.ToInt32(Console.ReadLine());
  19.       int c = 0;
  20.       Console.WriteLine("A számok: {0}, {1}", kivon(a,b, ref c), c);
  21.       Console.ReadKey();
  22.     }
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement