Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ZADANIE01
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Podaj liczbę całkowitą");
- int a = Convert.ToInt(Console.ReadLine());
- string b = a % 3 ? "podzielna przez 3" : "niepodzielna przez 3";
- if (a % 3) b = "podzielna przez 3";
- else b = "niepodzielna przez 3";
- string b = a % 5 ? "podziwelna przez 5" : "niepodzielna przez 5";
- if (a % 5) b = "podzielna przez 5";
- else b = "niepodzielna przez 5";
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement