Skip to content

Instantly share code, notes, and snippets.

View rohitrohan2009's full-sized avatar

Rohit Dasgupta rohitrohan2009

  • QUT Gardens Point
View GitHub Profile
@rohitrohan2009
rohitrohan2009 / bubble_sort.c
Created March 16, 2017 09:18
Bubble Sort program in C (no functions used)
//CODE OF BUBBLE SORT//
#include"stdio.h"
main()
{
int x, i , j, n,temp, arr[100];
printf("Enter the number of arrays you want");
scanf("%d", &n);
printf("Now enter the numbers: \n ");
for(i=0;i<n;i++)
{