Wednesday, August 23, 2017

1007 Difference URI Problem Only Solution In C#


using System;

class URI {
   
    static int joy(int A,int B)

    {
        return A*B;
    }

    static int jony(int C,int D)

    {
        return C*D;
    }

    static void Main(string[] args) {
       
    int A=Convert.ToInt32(Console.ReadLine());

    int B=Convert.ToInt32(Console.ReadLine());

    int C=Convert.ToInt32(Console.ReadLine());

    int D=Convert.ToInt32(Console.ReadLine());

    int E=joy(A,B)-jony(C,D);

    Console.WriteLine("DIFERENCA = {0}",E);

    }

}

No comments:

Post a Comment