Advertisement
spasnikolov131

Untitled

Oct 5th, 2021
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3.  
  4. namespace Exercise_Arrays
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. int n = int.Parse(Console.ReadLine());
  11. int people = int.Parse(Console.ReadLine());
  12. int sum = 0;
  13. int[] numbers = new int[n];
  14.  
  15.  
  16. for (int i = 0; i <= numbers.Length; i++)
  17. {
  18. sum += n;
  19. }
  20. Console.WriteLine(sum);
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement