Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PodzielnePrzez
- {
- public static void Main()
- {
- Console.WriteLine("Ile kolejnych liczb mam wypisac?");
- int ile = int.Parse(Console.ReadLine());
- Console.WriteLine("Przez jaką liczbę mają być podzielne?");
- int liczba = int.Parse(Console.ReadLine());
- for (int i = liczba; i<= (ile * liczba); i += liczba)
- {
- Console.WriteLine(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement