Azra
Bronze Üye
-
- Katılım
- 11 Mart 2014
-
- Mesajlar
- 3.834
-
- Tepkime puanı
- 13
-
- ForumSAL Yaşı:
- 12 yıl 7 ay
- Kıdem:
- Forumun Eskisi
-
- Yaş
- 35
Kod:
#include<cstdlib> //not 50den fazlaysa geçiren 50den azsa bırakan c++ programı
#include<iostream>
using namespace std;
int main(int argc, char*argv[])
{
int not1,not2;
int ort;
ort_al:
cout<<"1. notunuzu giriniz"<<endl;
cin>>not1;
if((not1<0 || not1>100)) {goto ort_al;}
ort_al2:
cout<<"2. notunuzu giriniz"<<endl;
cin>>not2;
if((not2<0 || not2>100)) {goto ort_al2;}
ort=(not1+not2)/2;
if(ort>50) { cout<<ort<<" notu ile gectiniz "<<endl;
}
else if (ort<50) { cout<<ort<<" notu ile kaldiniz "<<endl;
}
else { cout<<" Tam sinirdasiniz "<<endl; }
system("PAUSE");
return EXIT_SUCCESS;
}