Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp7
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("--- 3. feladat ---");
- Console.WriteLine("Kérek egy egész számot:");
- int szam = int.Parse(Console.ReadLine());
- Console.WriteLine("A megadott szám szomszédai: " + (szam - 1) + " és " + (szam - 2) + " .");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement