Advertisement
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;
- class Program
- {
- static void Main(string[] args)
- {
- /*
- Целочисленные данные
- Дробные числа float double
- Логические bool
- Объекты
- */
- byte a = 255;
- Console.Write("Enter number n: ");
- int n = Int32.Parse(Console.ReadLine());
- Console.Write("Enter number x: ");
- int x = Int32.Parse(Console.ReadLine());
- // 48
- Console.WriteLine(n);
- //Console.WriteLine(n/100 + "$ " + n%100 + " cents.");
- // >, >=, <, <=, ==, !=, ! - отрицание
- // && - AND, || - OR
- if (n > 0 && x >0)
- {
- Console.WriteLine("both is Positive");
- }
- Console.WriteLine("end");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement