Facebook
From Tiny Hedgehog, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 204
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp25
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int Iloczyn = iloczyn(2, 3);
  14.             Console.WriteLine(Iloczyn);
  15.             wypisz("witaj");
  16.             int Iloczyn1 = iloczyn1(2, 3);
  17.             Console.WriteLine(Iloczyn1);
  18.             int Iloczyn2 = iloczyn2(2, 3);
  19.             Console.WriteLine(Iloczyn2);
  20.             int Iloczyn3 = iloczyn3(2, 3);
  21.             Console.WriteLine(Iloczyn3);
  22.             Console.ReadLine();
  23.         }
  24.         static void wypisz(string tekst)
  25.         {
  26.             Console.WriteLine(tekst);
  27.         }
  28.         static int iloczyn(int liczba1, int liczba2)
  29.         {
  30.             int wynik = liczba1 * liczba2;
  31.             return wynik;
  32.         }
  33.         static int iloczyn1(int liczba1, int liczba2)
  34.         {
  35.             int wynik = liczba1 + liczba2;
  36.             return wynik;
  37.         }
  38.         static int iloczyn2(int liczba1, int liczba2)
  39.         {
  40.             int wynik = liczba1 - liczba2;
  41.             return wynik;
  42.         }
  43.         static int iloczyn3(int liczba1, int liczba2)
  44.         {
  45.             int wynik = liczba1 / liczba2;
  46.             return wynik;
  47.         }
  48.     }
  49. }