From b15e645835cee2fcc1923356c0dc171b23934e88 Mon Sep 17 00:00:00 2001 From: ANTOJERRIN Date: Sun, 8 Mar 2026 17:50:45 +0530 Subject: [PATCH] files --- bubs.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bubs.c diff --git a/bubs.c b/bubs.c new file mode 100644 index 0000000..6c7f613 --- /dev/null +++ b/bubs.c @@ -0,0 +1,38 @@ +#include + +int main() { + int n,i; + printf("enter the jumber\n"); + scanf("%d",&n); + int a[n]; + //inputing + for ( i = 0; i < n; i++) + { printf("the lements are\n"); + scanf("%d",&a[i]); + /* code */ + } + int t,f=0; + for(i=0;ia[j+1]) + { + t=a[j]; + a[j]=a[j+1]; + a[j+1]=t; + f=1; + } + } + + if(f==0){ + printf(""); + break; + } + + } + for(i=0;i