class Strange { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); int r = a % 8; if (r != 0) a += 8 - r; int s = 0; for (int i=a; i <= b; i+=8) s += i; System.out.println("Сумма:" + s); } }
if (x > y){ /*если x > y то он поменяет их местами*/ std::cout << "x и y поменяны местами\n" x ^= y; y ^= x; x ^= y; }else{ std::cout << "x и y не поменяны местами\n"; }
if (x > y){ /*если x > y то он поменяет их местами*/ std::cout << "x и y поменяны местами\n" x ^= y; y ^= x; x ^= y; }else{ std::cout << "x и y не поменяны местами\n"; }
class Strange
{
public static void main (String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
sc.close();
int r = a % 8;
if (r != 0) a += 8 - r;
int s = 0;
for (int i=a; i <= b; i+=8) s += i;
System.out.println("Сумма:" + s);
}
}