kisame1313

Untitled

Jul 14th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ForLesson15
  4.     {
  5.     class Program
  6.         {
  7.         static void Main(string[] args)
  8.             {
  9.             Console.WriteLine( Converted(10,10));
  10.             }
  11.         static int Converted (int i, int j)
  12.             {
  13.             if(i==j)
  14.                 {
  15.                 return i=-(i);
  16.                 }
  17.             else
  18.                 {
  19.                 return i;
  20.                 }
  21.             }
  22.         }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment