1. 1.
    +1 -1
    #include <iostream>
    using namespace std;

    int main() {
    cout<< "US ALMA PROGRAMINA HOSGELDINIZ.n";
    cout <<"EGER ALACAGINIZ SAYI KESIRLI ISE NOKTA ILE AYIRINIZ(.)n";
    double x;
    double sonuc;
    cout << "nUssunu alacaginiz sayiyi giriniz ve enterlayiniz: ";
    cin>> x;
    cout<< "x^0 icin 0a basiniz ve enterlayiniz:n";
    cout<< "x^1 icin 1e basiniz ve enterlayiniz:n";
    cout<< "x^2 icin 2ye basiniz ve enterlaliniz:n";
    cout<< "x^3 icin 3e basiniz ve enterlayiniz:n";
    cout<< "x^4 icin 4e basiniz ve enterlayiniz:n";
    cout<< "x^5 icin 5e basiniz ve enterlayiniz:n";
    cout<< "x^6 icin 6ya basiniz ve enterlayiniz:n";
    cout<< "x^7 icin 7ye basiniz ve enterlayiniz:n";
    cout<< "x^8 icin 8e basiniz ve enterlayiniz:n";
    cout<< "x^9 icin 9a basiniz ve enterlayiniz:n";
    cout<< "x^10 icin 10a basiniz ve enterlayiniz:n";
    cout<< "x^11 icin 11e basiniz ve enterlayiniz:n";
    cout<< "x^12 icin 12ye basiniz ve enterlayiniz:n";
    cout<< "x^13 icin 13e basiniz ve enterlayiniz:n";
    cout<< "x^14 icin 14e basiniz ve enterlayiniz:n";
    cout<< "x^15 icin 15e basiniz ve enterlayiniz:n";
    cout<< "x^16 icin 16ya basiniz ve enterlayiniz:n";
    cout<< "x^17 icin 17ye basiniz ve enterlayiniz:n";
    cout<< "x^18 icin 18e basiniz ve enterlayiniz:n";
    cout<< "x^19 icin 19a basiniz ve enterlayiniz:n";
    cout<< "x^20 icin 20ye basiniz ve enterlayiniz:n";

    cin>> sonuc;
    {
    if (sonuc == 0){
    cout<< "n"<< x <<"^ " <<"0" <<"= " << "1" << endl;
    if (x

    0)
    cout << "tanimsiz";
    }
    else if (sonuc

    1 )
    cout<< x <<"^" <<"1 " <<"= " << x << endl;
    else if (sonuc == 2)
    cout<< x <<"^" <<"2 " <<"= " << x * x << endl;
    else if (sonuc == 3)
    cout<< x<<"^" <<"3 " <<"= " << x * x * x << endl;
    else if (sonuc == 4)
    cout<< x<<"^" <<"4 " <<"= " << x * x * x * x << endl;
    else if (sonuc == 5)
    cout<< x<<"^" <<"5 " <<"= " << x * x * x * x * x << endl;
    else if (sonuc == 6)
    cout<< x<<"^" <<"6 " <<"= " << x * x * x * x * x * x << endl;
    else if (sonuc == 7)
    cout<< x<<"^" <<"7 " <<"= " << x * x * x * x * x * x * x << endl;
    else if (sonuc == 8)
    cout<< x<<"^" <<"8 " <<"= " << x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 9)
    cout<< x<<"^" <<"9" <<"=" << x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 10)
    cout<< x<<"^" <<"10" <<"=" << x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 11)
    cout<< x<<"^" <<"11" <<"=" << x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 12)
    cout<< x<<"^" <<"12" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 13)
    cout<< x<<"^" <<"13" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 14)
    cout<< x<<"^" <<"14" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 15)
    cout<< x<<"^" <<"15" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 16)
    cout<< x<<"^" <<"16" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 17)
    cout<< x<<"^" <<"17" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 18)
    cout<< x<<"^" <<"18" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 19)
    cout<< x<<"^" <<"19" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;
    else if (sonuc == 20)
    cout<< x<<"^" <<"20" <<"=" << x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x * x << endl;

    else
    cout << "yanlis bir tusa bastiniz!!!"; }
    cout<< " nprogram bitmistir cikmak icin herhangi bir harfe veya rakama basip enterlayarak cikabilirsinizn ";
    cout << "n by guzelinsan";

    cin>> x;
    }
    Tümünü Göster
    ···
   tümünü göster