Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
//AP BPG Cesitli Ornekler
using namespace std;
int main()
{
//Ekrana 10 defa programcýnýn adýný yazdýrma
/*
string isim;
int adi;
cout << "isim giriniz : " << endl;
cin >> isim;
for (adi = 0; adi <= 10; adi++)
{
cout << isim << endl;
}
return 0;
*/
// 1’den 100’e kadar tek sayýlarý yazdýma
/*
int x;
for (x=1; x<=100;x+=2)
{
cout << x << endl;
}
return 0;
*/
//Klavyeden girilen fiyatý, KDV(%18) ekleyerek ekrana yazdýrma ??? nerede hata ?
/*
float fiyat,isonuc;
double kdv=0.18;
cout << "Fiyat Giriniz" << endl;
cin >> fiyat;
isonuc = fiyat*kdv;
cout << "kdv Fiyati : " << isonuc << endl;
cout<<"Kdv+Fiyat : "<<isonuc+fiyat<< endl;
return 0;
*/
//üç sayýnýn toplamýný ve ortalamasýný yazdýrma
/*
float a, b, c;
float ort;
cout << "1.sayiyi Giriniz" << endl;
cin >> a;
cout << "2.sayiyi Giriniz" << endl;
cin >> b;
cout << "3.sayiyi Giriniz" << endl;
cin >> c;
ort = (a + b + c ) / 3;
cout<<"3 Sayinin Ortalamasi : "<< ort<<endl;
return 0;
*/
// Klavyeden girilen sayý kadar(N) sayýnýn faktoryelini yazdýrma
/*
int a, faktoriyel = 1, sayi;
cout << "Hesaplamak icin Sayi Giriniz : " << endl;
cin >> sayi;
for (a=1; a<=sayi;a++)
{
faktoriyel = faktoriyel*a;
}
cout << "Girmis oldugunuz Sayinin Faktoriyeli : "<< faktoriyel << endl;
return 0;
*/
/*
Klavyeden girilen bir sayýnýn pozitif ya da nagatif olduðunu ekrana yazdýrma
int a;
cout << "Bir Sayi Giriniz : "<<endl;
cin >> a;
if (a>0)
{
cout << "Girmis oldugunuz "<<a<<" Sayisi Pozitif bir Sayidir ." << endl;
}
else
{
cout << "Girmis oldugunuz " << a << " Sayisi negatif bir Sayidir ." << endl;
}
return 0;
*/
/*
cout << "t t t Hesap Makinasi Programin" << endl;
string a,b,c,d;
double s1,s2;
string secim;
cout<<"1.sayiyi yaziniz :"<<endl;
cin>>s1;
cout<<"2.sayiyi yaziniz :"<<endl;
cin>>s2;
cout<<"Yapmak istediginiz islem turunu yaziniz :"<<endl;
cout<<"A)Topla B)Cikar C)Carp D)Bol"<<endl;
cin>>secim;
if (secim=="a")
{
double sonuc=s1+s2;
cout<<"t Sonuc:"<<sonuc<<endl;
}
else if(secim=="b")
{
double sonuc=s1-s2;
cout<<"t Sonuc:"<<sonuc<<endl;
}
else if (secim=="c")
{
double sonuc=s1*s2;
cout<<"t Sonuc:"<<sonuc<<endl;
}
else if (secim=="d")
{
double sonuc=s1/s2;
cout<<"t Sonuc:"<<sonuc<<endl;
}
return 0;
*/
/*
//-Kullanıcının klavyeden girdiği sayı 3’ e ve 5’ e tam bölünüyorsa ekrana tam bölünüyor yazan bölünmüyor sa bölünmüyor yazdırma
int sayi=0;
cout<<"Sayi Girin : ";
cin>>sayi;
if (sayi%3==0&&sayi%5==0 )
cout<<"Girmis oldugunuz sayi 3 ve 5'e Tam bolunmektedir."<<endl;
else
cout<<"Girmis oldugunuz sayilar 3'e ve 5'e Tam Bolunememektedir"<<endl;
return 0;
*/
/*
//Bir fabrikada sabit maaşla çalışan işçiler aile durumlarına göre ek maaş almaktadırlr.
//Çocuk sayısı 1 ise maaşının %5’i kadar , çocuk sayısı 2 ise %10’u 3 ve daha fazla ise %15’i kadar aile yardımı almaktadır.
//Buna göre kullanıcıdan işçinin maaşı ve çocuk sayısı istenerek gerekli hesaplamayı yapan algoritma ?
int cocuk=0,maas=0;
cout<<"Maas Miktarinizi Giriniz : "<<endl;
cin>>maas;
cout<<"Cocuk Sayisini Giriniz : "<<endl;
cin>>cocuk;
if(cocuk==0)
cout<<"Maasiniz : "<<maas<<endl;
else if (cocuk==1)
{
double sonuc=maas +(maas*5/100);
cout<<"Maasiniz : "<<sonuc<<endl;
}
else if (cocuk==2)
{
double sonuc=maas +(maas*10/100);
cout<<"Maasiniz : "<<sonuc<<endl;
}
else
{
double sonuc=maas +(maas*15/100);
cout<<"Maasiniz : "<<sonuc<<endl;
}
*/
/*
// Klavyeden girilen 10 sayıyı toplayan ve sonucu ekranda gösterme
int i,toplam,sayi;
toplam=0;
for(i=1;i<=10;i++)
{
cout<<"Sayiyi Giriniz :";
cin>>sayi;
toplam=toplam+sayi;
}
cout<<endl;
cout<<"Girmis oldugunuz Sayilarin Toplami : "<<toplam<<endl;
*/
/*
//Klavyeden girilen a ve b sayıları arasındaki sayıları listeleme
int i,sayi1,sayi2;
cout<<"1.Sayiyi Giriniz: ";
cin>>sayi1;
cout<<"2.Sayiyi Giriniz: ";
cin>>sayi2;
for(i=sayi1;i<sayi2;i++)
cout<<"iki Sayi Arasinda bulunanlar : "<<i<<endl;
*/
}
}
![]() |
Notes is a web-based application for online 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 14 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