C# ta (2x+5)(3y-7) nin Sonucunu Bulan Program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication39
{
    class Program
    {
        static void Main(string[] args)
        {
            int sonuc ;
            Console.WriteLine("(2x+5)(3y-7)");

           for(;;)
            {
                Console.Write("x için  :");
                int x = Convert.ToInt32(Console.ReadLine());
                Console.Write("y için  :");
                int y = Convert.ToInt32(Console.ReadLine());
                sonuc = ((2 * x + 5) * (3 * y - 7));
                Console.WriteLine("sonuç=" + sonuc);
            }
               
            
           

        }
    }
}

Yorum Gönder

0 Yorumlar