C# Kısa ve Uzun Kenarı Girilen Dikdörtgenin Alanını ve Çevresini Hesaplayan Console Programı

S

Shiva

Thread Starter
Veteran
Joined
Jul 31, 2019
Messages
4,067
Reaction score
13,335
Location
Berlin
Kısa ve uzun kenarı girilen dikdörtgenin alanını ve çevresini hesaplayan programı ;
C#:
int kisakenar, uzunkenar, alan,cevre;
Console.Write("Kısa kenar uzunluğunu giriniz :");
kisakenar = Convert.ToInt32(Console.ReadLine());
Console.Write("Uzun kenar uzunluğunu giriniz :");
uzunkenar = Convert.ToInt32(Console.ReadLine());
alan = kisakenar * uzunkenar;
cevre = 2 * (kisakenar + uzunkenar);
Console.WriteLine("Dikdörtgenin Alanı = {0},Çevresi={1}",alan,cevre);
Console.ReadKey();
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Theme editor

Top Bottom