Advertisement
Cassimus

Podzielne

Jan 25th, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class PodzielnePrzez
  2. {
  3. public static void Main()
  4. {
  5. Console.WriteLine("Ile kolejnych liczb mam wypisac?");
  6. int ile = int.Parse(Console.ReadLine());
  7. Console.WriteLine("Przez jaką liczbę mają być podzielne?");
  8. int liczba = int.Parse(Console.ReadLine());
  9.  
  10. for (int i = liczba; i<= (ile * liczba); i += liczba)
  11. {
  12. Console.WriteLine(i);
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement