From b40143d6d1eeef46a60a5f16c9d7c4c1ce18ef25 Mon Sep 17 00:00:00 2001 From: B4rkod Date: Sun, 5 Nov 2023 15:14:56 +0300 Subject: feat: git created --- odev.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 odev.c (limited to 'odev.c') diff --git a/odev.c b/odev.c new file mode 100644 index 0000000..a7dbe80 --- /dev/null +++ b/odev.c @@ -0,0 +1,25 @@ +#include +//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 )); + } + +} -- cgit v1.2.3