From b00b921c91bdc73cfa8332b5e17a4486d8172329 Mon Sep 17 00:00:00 2001 From: chinthaka-Git <73853861+chinthaka-Git@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:41:17 +0530 Subject: [PATCH] Get user inputs to array --- Bubblesort.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Bubblesort.c b/Bubblesort.c index 457b10d..dc3e7a5 100644 --- a/Bubblesort.c +++ b/Bubblesort.c @@ -41,7 +41,13 @@ void printArray(int arr[], int size) int main() { - int arr[] = {64, 34, 25, 12, 22, 11, 90}; + int size=5; + int array[size]; + + for(i=0;i