SHARE
TWEET

prac 2 ex 2

Sephinroth Sep 15th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace _2._2
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("Введите число = ");
  13.             int a = int.Parse(Console.ReadLine());
  14.             Console.Write("Введите цифру A = ");
  15.             int A = int.Parse(Console.ReadLine());
  16.             Console.Write("Оканчивается ли на данную цифру? ");
  17.             Console.Write((a % 10 == A) ? true : false);
  18.             Console.ReadKey();
  19.         }
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top