Advertisement
Cassimus

petle1

Mar 25th, 2025
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. #region zad1
  2. // System.Console.WriteLine("Podaj liczbę calkowitą: ");
  3. // int liczba = int.Parse(Console.ReadLine());
  4. // System.Console.WriteLine("Ile razy mam dodać 5?");
  5. // int licznik = int.Parse(Console.ReadLine());
  6.  
  7. // int suma = liczba;
  8.  
  9. // for(int i = 0; i < licznik; i++  )
  10. // {
  11. //     suma += 5;
  12. //     System.Console.WriteLine($"{i+1}. Po dodaniu 5 {i+1} raz: {suma}");
  13. // }
  14.  
  15. // DRY - Don't Repeate Yourself
  16. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement