Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x = int.Parse(Console.ReadLine()); //100
- int y = int.Parse(Console.ReadLine()); //200
- int sum = 0;
- for (int i = Math.Min(x,y) /*100*/; i <= Math.Max(x,y)/*200*/; i++)
- {
- if (i % 13 != 0)
- {
- sum = sum + i;
- }
- }
- Console.WriteLine(sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement