NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

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

namespace ilkgün
{
class Program
{
static void Main(string[] args)
{
//konsol ekranında yaptığımız işlemleri veya kullanıcıya bilgi vermek için console WriteLine() kullanıyoruz.

//Console.WriteLine(5 + 5);
//Console.WriteLine("5" + "5");

//değişkenler
/*
=>int tam sayı tutmak için kullanıyor.
=>string veri tipinde değer tanımlamak için yazım kuralı gereği çift tırnak ("")
içerisinde yazacağımız değeri vermemiz gerekiyor.

=>double ve float ondalıklı sayıları tutmak için kullanıyoruz.
-float kullanırken eğer sayı ondalıklı ise sonuna f harfini getirmeniz gerekiyor.

=>char tek karakter, rakam veya özel harf için kullanıyoruz.
-char değişkenini kullanırken yazım kuralı gereği tek tırnak ('') içerisine tanımlamak gerekiyor.

=>bool değişkeni true veya false değerler için kullanıyoruz.

=>var atadığımız değere en uygun tipe dönüşür.

*/


//int sayi1=8;

//Console.WriteLine(sayi1);
//string isim = "ebrar";
//Console.WriteLine(isim);

//double ondalık = 5.3;
//float fOndalık = 5.3f;
//Console.WriteLine(ondalık + " " + fOndalık);

//bool yes = true;
//bool no = false;

//bool doğru;//bool default değeri true dur

//char tek = '1';

////Camel case
//var ondalıkSayı = 12.4; //burada var türünü ondalık sayıya eşitlediğimiz için var ondalık tür olan double oldu.
//var metinselIfade = "metin";//burada var türünü metinsel ifadeye eşitlediğimiz için metinsel tür olan string oldu.

//string ad, soyad;

//ad = "ebrar";
//soyad = "kara";

//Console.WriteLine(ad + " " + soyad);

//Console.WriteLine("------------Yaş Hesaplama------------");

//int dogum = 2004
//int tarih = 2023;
//int sonuç = 2023 - 2004;

//int sonuç1 = tarih - doğum;

//Console.WriteLine(tarih - doğum);

//Console.WriteLine(sonuç);

//Console.WriteLine(sonuç1);

//ortalama hesaplama => 3 tane not girelim ve bu notların ortalamısını hesaplayıp ekranda gösterelim

int sayı = 9;
int sayı1 = 7;
int sayı2 = 3;

double sonuc = sayı + sayı1 + sayı2;
Console.WriteLine(sonuc / 3);

//değişkenler

//byte c = 255;//0,255 1byte
//sbyte d = 0; //-128,127 1 byte
//short e = 45; //-32768,32767 2byte
//ushort f = 123; // 0,65353
//uint h = 0; //0,42milyar
//long j = 0;
//ulong k = 0; //çok fazla
//decimal p = 12.5M;

//Console.WriteLine("-----------Kullanıcıdan Bilgi Almak------------");

//string metin;
//Console.WriteLine("Adınızı giriniz : ");
//metin = Console.ReadLine(); //Kullanıcıdan bilgi almak için Console.ReadLine() kullanıyoruz.

//Console.WriteLine("Hoşgeldin : " + metin);

//kullanıcıdan ad soyad ve yaş bilgisini alıp ekranda gösterelim.
// // 2 farklı türü eşitlemek istersek tür dönüşümü yapmak zorundayız.
// Console.WriteLine("Adınızı giriniz : " );
// string adı, soyadı;
// int yas;
// adı = Console.ReadLine();

// Console.WriteLine("soyadınızı giriniz" );
//soyadı = Console.ReadLine();

// //Console.WriteLine("yasınızı giriniz ");
// yas = Console.ReadLine();

//yas = int.Parse(Console.ReadLine());
//// yas = convert.ToInt32(Console.ReadLine());
//// n => işaretten sonra gelen metni alt satırdan sonra başlatır.
//Console.WriteLine("nAdı : " + adı + "nSoyadı : " + soyadı + "nYas : " + yas);

////kullanıcıdan iki farklı sayı alıp 2 sayının toplamını ekrana yazdıralım.

int sayi1;
int sayi2;

Console.WriteLine(" ilk sayınızı giriniz");
sayi1 = int.Parse(Console.ReadLine());

Console.WriteLine("ikinci sayınızı giriniz");
sayi2 = int.Parse(Console.ReadLine());

Console.WriteLine(sayi1 + sayi2);

// Console.WriteLine("(0) + (1) = (2)", sayi1, sayi2,(sayi1 + sayi2));


Console.ReadKey();
}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.