Skip to content

Instantly share code, notes, and snippets.

@ahmetcanisik
Last active October 19, 2024 19:07
Show Gist options
  • Save ahmetcanisik/9d8640278fef86dead102d24d6473b91 to your computer and use it in GitHub Desktop.
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#
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