From b5764464e658b301c5c447d6e999db9883f51b09 Mon Sep 17 00:00:00 2001 From: vishad2 <31646315+vishad2@users.noreply.github.com> Date: Sat, 6 Oct 2018 17:22:17 +0530 Subject: [PATCH] Update BubbleSort.cpp random function in bubble sort --- Sorting/Bubble Sort/C++/BubbleSort.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sorting/Bubble Sort/C++/BubbleSort.cpp b/Sorting/Bubble Sort/C++/BubbleSort.cpp index cc39d43b..d7ee7288 100644 --- a/Sorting/Bubble Sort/C++/BubbleSort.cpp +++ b/Sorting/Bubble Sort/C++/BubbleSort.cpp @@ -23,7 +23,7 @@ void main() { clrscr(); randomize(); - int cnt,size; + int cnt,size,i1; for(int k=0;k<14;k++) { size=random(10)+10; @@ -35,7 +35,7 @@ clrscr(); } cnt=bsort(a,size-1); cout<<"\n"; - for(int i1=0;i1