Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Learn1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = 10;
- int b = 38 * 17;
- int c = (31 - 5 * a) / b;
- Console.WriteLine(c);
- // в переменной а остается 10 в переменной b = 646
- // значит сначала выполняется по приоритету что в скобке а это умножение 5 * 10 = 50,
- // 31 - 50 = -19
- // -19 / 646 = 0 так как отрицательное число делится
- }
- }
- }
Add Comment
Please, Sign In to add comment