Last active
October 19, 2024 19:07
-
-
Save ahmetcanisik/9d8640278fef86dead102d24d6473b91 to your computer and use it in GitHub Desktop.
Kullanıcıdan alınan iki sayıyı toplayan programın kodları C#
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class Matematik | |
{ | |
public static string input(string message) | |
{ | |
Console.Write(message); | |
return Console.ReadLine(); | |
} | |
public static void Main(string[] args) | |
{ | |
int n1, n2; | |
n1 = Convert.ToInt16(input("İlk Sayıyı Giriniz: ")); | |
n2 = Convert.ToInt16(input("İkinci Sayıyı Giriniz: ")); | |
Console.Write("{0} + {1} = {2}", n1, n2, (n1 + n2)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment