1. 76.
    0
    #include <cstdlib>
    2. include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    int ucret, saat;
    char b,o,k,d, arac_tipi;
    string plaka;

    cout<<"arac tipleri ( b: binek, o: otobus, k: kamyon, d: diger )nn";

    cout<<"arac tipi girin: ";
    cin >> arac_tipi;
    cout<<"nnsaati girin: ";
    cin >> saat;
    cout<<"nnarac plakasini girin: ";
    cin>>plaka;

    if (arac_tipi == 'b' )
    {
    ucret=5*saat;
    cout<<"nn"<<plaka<<" aracin odeyecegi ucret: "<<ucret<< "tl dir.";
    }

    else if (arac_tipi == 'o')
    {
    ucret=7*saat;
    cout<<"nn"<<plaka<<" aracin odeyecegi ucret: "<<ucret<< "tl dir.nn";
    }
    else if (arac_tipi == 'k')
    {
    ucret=9*saat;
    cout<<"nn"<<plaka<<" aracin odeyecegi ucret: "<<ucret<< "tl dir.nn";
    }
    else if (arac_tipi == 'd')
    {
    ucret=3*saat;
    cout<<"nn"<<plaka<<" aracin odeyecegi ucret: "<<ucret<< "tl dir.nn";
    }

    else{
    cout<<"nn yanlis arac tipi sectiniz... nn";
    }

    system("pause");
    return exit_success;
    }
    ···
   tümünü göster