Advertisement
Guest User

nem szekvenciális 2

a guest
Oct 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. //fv hívás
  4. int szam = Beolvas();
  5.  
  6. Console.WriteLine("a beirt szam: {0}", szam);
  7. Console.ReadLine();
  8. }
  9. //fv deklaráció
  10. static int Beolvas()
  11. {
  12. Console.WriteLine("irjon be egy szamot: ");
  13.  
  14. int s = int.Parse(Console.ReadLine());
  15.  
  16. return s = int.Parse(Console.ReadLine());
  17.  
  18. return s;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement