diff --git a/src-c/BubbleSort.c b/src-c/BubbleSort.c index 29566a1..122954f 100644 --- a/src-c/BubbleSort.c +++ b/src-c/BubbleSort.c @@ -1,2 +1,43 @@ -# include +//Authour: Amar Gwari Date: 06/10/19 Time: 16:31 +#include +int main() { + long long int N,i=0,j=0,k,z; + // user must input the length of the array to be sorted as well as input the elements of the array + // input element number:- + printf("Please enter the number of elements of array:-\n"); + scanf("%lld",&N); + printf("\n"); + printf("Enter the elements of the array (each elemented space seperated)\n"); + + long long int a[N]; //declaring the array + + //input elements of array (each element must be space separated) + for(i=0;i +int main() { +long long int N; +scanf