Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using static System.Console;
- namespace The_begining
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- var divisibleBy2 = 0;
- var divisibleBy3 = 0;
- var divisibleBy4 = 0;
- var p1 = 0;
- for (int i = 0; i < n; i++)
- {
- int numbers = int.Parse(Console.ReadLine());
- if (numbers % 2 == 0)
- {
- divisibleBy2++;
- p1 = (divisibleBy2 / 10) * 100;
- }
- if (numbers % 3 == 0)
- {
- divisibleBy3++;
- }
- if (numbers % 4 == 0)
- {
- divisibleBy4++;
- }
- }
- Console.WriteLine(p1);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement