Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 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. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. /*
  12. Целочисленные данные
  13. Дробные числа float double
  14. Логические bool
  15. Объекты
  16. */
  17. byte a = 255;
  18. Console.Write("Enter number n: ");
  19. int n = Int32.Parse(Console.ReadLine());
  20. Console.Write("Enter number x: ");
  21. int x = Int32.Parse(Console.ReadLine());
  22. // 48
  23. Console.WriteLine(n);
  24. //Console.WriteLine(n/100 + "$ " + n%100 + " cents.");
  25. // >, >=, <, <=, ==, !=, ! - отрицание
  26. // && - AND, || - OR
  27.  
  28.  
  29. if (n > 0 && x >0)
  30. {
  31. Console.WriteLine("both is Positive");
  32.  
  33. }
  34. Console.WriteLine("end");
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement