summaryrefslogtreecommitdiff
path: root/deneme_9.c
diff options
context:
space:
mode:
authorb4rkod <void@Asena.localdomain>2024-01-17 21:17:07 +0300
committerb4rkod <void@Asena.localdomain>2024-01-17 21:17:07 +0300
commitb03b61b232c1fa0b9ff1ae607232f8ab3f55ea38 (patch)
tree9169255eae57e59035595768e8dd46cfaba28f50 /deneme_9.c
parent2fa043277b090a37b3f378a2fefccc57b5bd2814 (diff)
Diffstat (limited to 'deneme_9.c')
-rw-r--r--deneme_9.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/deneme_9.c b/deneme_9.c
new file mode 100644
index 0000000..097fa45
--- /dev/null
+++ b/deneme_9.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+int main()
+{
+ int nt[4];
+ int i1=0, n=4;
+ float ort=0;
+ for (int i = 0; i<=n; i++)
+ {
+ printf("%d. notu giriniz: ",i);
+ scanf("%d",&nt[i]);
+ }
+ for (int i = 0; i <= n ;i++) {
+ i1 = i1+nt[i];
+ }
+ printf("not toplam: %d\n",i1);
+ ort=i1/(n+1);
+ printf("not ortalamasi: %.2f\n",ort);
+}
+