C++ YARIŞMA KODLARI/C++ COMPETITION CODES

  #include <unistd.h> #include <locale.h> #include <iostream> using namespace std; float a1,a2,a3,b1,b2,b3 ; int bitis ; int main() {     setlocale ( LC_ALL , "Turkish" );     cout<< "128/4?  " ;     cin>>a1 ;     if (a1==32)     {         cout<< " doğru cevap aferin sana               " ;         cout<< "  2.sorun şu 55*82   " ;         cin>>a2 ;     }     else {         cout<< " görüşürüz yanlış cevap   " ;         return 0;     }     if (a2==4510)     {     ...

C++ DERS ORTALAMASI BULMA KODLARI / C ++ COURSE AVERAGE FINDING CODES

 


#include <iostream>
#include <locale.h>
#include <unistd.h>

using namespace std;

int main()
{
int sinav1,sinav2,sonuc ;  //functions: exam1,exam2,result 
setlocale(LC_ALL,"Turkish"); // Turkish character command
cout<< "birinci sınav sonucunu gir "; //enter the first exam result
cin>>sinav1;
cout<<"ikinci sınav sonucunu gir ";//enter the second exam result
cin>>sinav2;
sonuc=(sinav1+sinav2)/2 ;   //command of the average finding process
cout<<"ortalaman : "<<sonuc ; //result
if(sonuc<70)  // if the result is less than 70
{
cout<<"   dersten kaldın"; //you failed the class
}
if(sonuc>70) //if the result is greater than 70
{
cout<<"     dersten geçtin"; //you passed the lesson
}
if(sonuc==100) //if the result equal the 100
{
cout<<"   FULL ÇEKMİŞSİN";  //you got full points in the exam
}
sleep(10000);  //waiting...
}

Yorumlar

Bu blogdaki popüler yayınlar

New project/yeni proje