summaryrefslogtreecommitdiff
path: root/deneme_8.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_8.c
parent2fa043277b090a37b3f378a2fefccc57b5bd2814 (diff)
Diffstat (limited to 'deneme_8.c')
-rw-r--r--deneme_8.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/deneme_8.c b/deneme_8.c
new file mode 100644
index 0000000..d4c192d
--- /dev/null
+++ b/deneme_8.c
@@ -0,0 +1,30 @@
+#include <stdio.h>
+int main()
+{
+ int boy[4];
+ int gec=0, n=4;
+ for (int i = 0; i<=n; i++)
+ {
+ printf("%d. num giriniz: ",i);
+ scanf("%d",&boy[i]);
+ }
+ for ( int x=0; x<=n-1;x++)
+ {
+ for ( int y=x+1; y<=n; y++)
+ if (boy[x] < boy[y]){
+ gec=boy[x];
+ boy[x]=boy[y];
+ boy[y]=gec;
+ }
+
+ }
+
+
+
+ printf("siralanmis boy bilgileri:\n");
+ for (int i = 0; i<=n; i++)
+ {
+ printf("%d : %d \n",i,boy[i]);
+ }
+}
+