summaryrefslogtreecommitdiff
path: root/odev.c
diff options
context:
space:
mode:
authorB4rkod <void@Asena.localdomain>2023-11-07 10:44:16 +0300
committerB4rkod <void@Asena.localdomain>2023-11-07 10:44:16 +0300
commit1d7b277171576ddaad6fe42bf8d4fc944e65f10b (patch)
tree8adfcb26911c8d865951512e23bb9e764883ef27 /odev.c
parentb40143d6d1eeef46a60a5f16c9d7c4c1ce18ef25 (diff)
html
Diffstat (limited to 'odev.c')
-rw-r--r--odev.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/odev.c b/odev.c
deleted file mode 100644
index a7dbe80..0000000
--- a/odev.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-//alis fiyati, masraf, kar ORANI, iskonto YUZDESI
-int main()
-{
- int af,mas;
- float ko,iy;
- printf("Alış fiyatını giriniz:");
- scanf("%d",&af);
- printf("Masrafı giriniz:");
- scanf("%d",&mas);
- printf("Kar oranını giriniz:");
- scanf("%f",&ko);
- printf("iskonto oranını giriniz(opsiyonel):");
- scanf("%f",&iy);
- printf("%d %d %.2f %.2f\n", af , mas , ko, iy);
- float ns = (((af + mas)
- + ((af + mas) * ko)));
- printf("tam satış fiyatı= %.2f\n",ns);
- if ( iy != 0)
- {
- printf("indirimli satış fiyat=%.2f\n",ns
- - (ns * iy ));
- }
-
-}