Skip to content

Instantly share code, notes, and snippets.

@AnatolyShirykalov
Created January 25, 2017 19:15
Show Gist options
  • Save AnatolyShirykalov/f7e5bbd46e662e37407a481a1ba47121 to your computer and use it in GitHub Desktop.
Save AnatolyShirykalov/f7e5bbd46e662e37407a481a1ba47121 to your computer and use it in GitHub Desktop.
discrete-prictice

18

Ответ -6 Сайт: Basic Compiler Online

For X As Integer = -20 To 20
  Dim Y As Integer = X XOR (X + X)
  If Y = 14 THEN
    Print X
  End If
Next

20

Два ответа: -33, 32 Сайт: С# Compiler Online

//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Rextester
{
    public class Program
    {
        public static void Main(string[] args)
        {
            //Your code goes here
              int i;
              for(i=-10000; i<10000; i++)
                  if ((i^(i>>1)) == 48 )
                      Console.WriteLine(i);
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment