Sephinroth

prac 1 ex 3

Sep 15th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace z3
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("a = ");
  13.             int a = int.Parse(Console.ReadLine());
  14.             Console.Write("b = ");
  15.             int b = int.Parse(Console.ReadLine());
  16.             Console.Write("c = ");
  17.             int c = int.Parse(Console.ReadLine());
  18.             int res = a + b + c;
  19.             Console.Write(a + " + " + b + " + " + c + " = " + res);
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Add Comment
Please, Sign In to add comment