Commit c9a2ef9b authored by ferhat tamer's avatar ferhat tamer 💬
Browse files

.

parent c2d20fd5
...@@ -32,14 +32,14 @@ cout<<"Konsol Rengi "<<Renk<<endl; ...@@ -32,14 +32,14 @@ cout<<"Konsol Rengi "<<Renk<<endl;
cout << "Programi sonlandirmak icin -1 degerini giriniz.\n\n"; cout << "Programi sonlandirmak icin -1 degerini giriniz.\n\n";
cin>>secim; cin>>secim;
//eer seim -1 ise dngy sonlandracaz. //eer seim -1 ise dngy sonlandracaz.
if(secim == -1) if(secim == -1)
{ {
break; break;
} }
HesapGecmisi = fopen("HesapGecmisi.txt","a+"); HesapGecmisi = fopen("HesapGecmisi.txt","a+");
//Hesaplama gemiini kaydetmek iin dosya oluturduk. //Hesaplama gemiini kaydetmek iin dosya oluturduk.
switch (secim){ switch (secim){
...@@ -95,7 +95,7 @@ cout<<"Konsol Rengi "<<Renk<<endl; ...@@ -95,7 +95,7 @@ cout<<"Konsol Rengi "<<Renk<<endl;
} }
cout << "Us Sonucu = " <<sonuc; cout << "Us Sonucu = " <<sonuc;
if (HesapGecmisi != NULL) { if (HesapGecmisi != NULL) {
fprintf(HesapGecmisi, "%.3f ^ %.3f = %f\n", sayi1, sayi2, sonuc); fprintf(HesapGecmisi, "%.3f ^ %.3f = %d\n", sayi1, sayi2, sonuc);
} }
sonuc=1; sonuc=1;
break; break;
...@@ -113,7 +113,7 @@ cout<<"Konsol Rengi "<<Renk<<endl; ...@@ -113,7 +113,7 @@ cout<<"Konsol Rengi "<<Renk<<endl;
} }
break; break;
case 7: case 7:
cout << "Faktriyelini Almak stediiniz Sayy Giriniz: "; cout << "Faktriyelini Almak stediiniz Sayy Giriniz: ";
cin >> sayi1; cin >> sayi1;
for(int i = 1; i <= sayi1; i++){ for(int i = 1; i <= sayi1; i++){
faktoriyel *= i; faktoriyel *= i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment