Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace DomacaZadaca3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int min = 1;
  14. int max = 100;
  15. int suma = 0;
  16. for(int i = min; i <= max; i++)
  17. suma = suma + i;
  18. Console.WriteLine("Suma brojeva od {0} do {1} jednaka je {2}.", min, max, suma);
  19. Console.ReadKey();
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement