diff --git a/bubble.cpp b/Hasika2.cpp similarity index 94% rename from bubble.cpp rename to Hasika2.cpp index e57f65f..bfb4485 100644 --- a/bubble.cpp +++ b/Hasika2.cpp @@ -4,7 +4,7 @@ using namespace std; int main() { - int i,j,temp,n; + int i,j,t,n; cout<<"Enter the number of elements"<>n; @@ -22,7 +22,7 @@ int main() { if(arr[j]>arr[j+1]) { - temp=arr[j]; + t=arr[j]; arr[j]=arr[j+1]; arr[j+1]=temp; } @@ -47,4 +47,4 @@ int main() } return 0; -} \ No newline at end of file +}