Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Lesson1_4
- {
- class Program
- {
- static void Main()
- {
- int a = 10; //10
- int b = 38 * 17; //646
- int c = (31 - 5 * a) / b; //0, инт не может содержать в себе дробную часть
- Console.WriteLine("Переменная a имеет значение " + a);
- Console.WriteLine("Переменная b имеет значение " + b);
- Console.WriteLine("Переменная c имеет значение " + c);
- }
- }
- }
Add Comment
Please, Sign In to add comment