Advertisement
Guest User

1.10

a guest
Aug 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CSharp_Light
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args) {
  12.             int a = 10;
  13.             int b = 38 * 17;
  14.             int c = (31 - 5 * a) / b;
  15.             //Console.WriteLine(++A + 2 + 1 + A++ + "1" + ++A * 2);//Будет ошибка, т.к. а и А - это разные переменные.
  16.             //Если же имелось ввиду а вместо А, то вот:
  17.             Console.WriteLine(++a + 2 + 1 + a++ + "1" + ++a * 2);
  18.             //11 + 2 + 1 + 11 + "1" + 13 * 2
  19.             //25 + "1" + 26
  20.             //25126
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement