Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ferhat tamer
fonksiyonel hesap makinasi
Commits
c9a2ef9b
Commit
c9a2ef9b
authored
May 29, 2022
by
ferhat tamer
💬
Browse files
.
parent
c2d20fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
hesap.cpp
View file @
c9a2ef9b
...
...
@@ -32,14 +32,14 @@ cout<<"Konsol Rengi "<<Renk<<endl;
cout
<<
"Programi sonlandirmak icin -1 degerini giriniz.
\n\n
"
;
cin
>>
secim
;
//eer seim -1 ise dngy sonlandracaz.
//eer seim -1 ise dngy sonlandracaz.
if
(
secim
==
-
1
)
{
break
;
}
HesapGecmisi
=
fopen
(
"HesapGecmisi.txt"
,
"a+"
);
//Hesaplama gemiini kaydetmek iin dosya oluturduk.
//Hesaplama gemiini kaydetmek iin dosya oluturduk.
switch
(
secim
){
...
...
@@ -95,7 +95,7 @@ cout<<"Konsol Rengi "<<Renk<<endl;
}
cout
<<
"Us Sonucu = "
<<
sonuc
;
if
(
HesapGecmisi
!=
NULL
)
{
fprintf
(
HesapGecmisi
,
"%.3f ^ %.3f = %
f
\n
"
,
sayi1
,
sayi2
,
sonuc
);
fprintf
(
HesapGecmisi
,
"%.3f ^ %.3f = %
d
\n
"
,
sayi1
,
sayi2
,
sonuc
);
}
sonuc
=
1
;
break
;
...
...
@@ -113,7 +113,7 @@ cout<<"Konsol Rengi "<<Renk<<endl;
}
break
;
case
7
:
cout
<<
"Faktriyelini Almak stediiniz Sayy Giriniz: "
;
cout
<<
"Faktriyelini Almak stediiniz Sayy Giriniz: "
;
cin
>>
sayi1
;
for
(
int
i
=
1
;
i
<=
sayi1
;
i
++
){
faktoriyel
*=
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment