Programalama > C++

Etiketler: basit, bir, bir, hesap, makinasi

Ort. 0
Puan ver:
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f,g,h;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"Programci ACILARIN Playboyu abidin";
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<endl;
cout<<"1.TOPLAMA";
cout<<endl;
cout<<"2.CIKARMA";
cout<<endl;
cout<<"3.CARPMA";
cout<<endl;
cout<<"4.BOLME";
cout<<endl;
cout<<"5.CIKIS";
cout<<endl;
cout<<"Seciminiz...="; cin>>h;
cout<<endl;
if (h==1)
{
cout<<endl;
cout<<"TOPLAMA iSLEMi";
cout<<endl;
cout<<"1.sayi Giriniz..="; cin>>a;
cout<<endl;
cout<<"2.sayi Giriniz..="; cin>>b;
c=a+b;
cout<<endl;
cout<<"Toplama sonucu..="<<c;
}
if (h==2)
{
cout<<endl;
cout<<"Cikarma iSLEMi";
cout<<endl;
cout<<"1.sayi Giriniz..="; cin>>a;
cout<<endl;
cout<<"2.sayi Giriniz..="; cin>>b;
c=a-b;
cout<<endl;
cout<<"Cikarma sonucu..="<<c;
}
if (h==3)
{
cout<<endl;
cout<<"Carpma iSLEMi";
cout<<endl;
cout<<"1.sayi Giriniz..="; cin>>a;
cout<<endl;
cout<<"2.sayi Giriniz..="; cin>>b;
c=a*b;
cout<<endl;
cout<<"Carpma sonucu..="<<c;
}
if (h==4)
{
cout<<endl;
cout<<"Bölme iSLEMi";
cout<<endl;
cout<<"1.sayi Giriniz..="; cin>>a;
cout<<endl;
cout<<"2.sayi Giriniz..="; cin>>b;
c=a/b;
cout<<endl;
cout<<"Bolme sonucu..="<<c;
}
cout<<endl;
cout<<endl;
cout<<"Cikmak İcin Lutfen Bir Tusa Basiniz";

if (h==5)
{
cout<<"BYEEEEE";
exit;
}
getch();
}


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.