Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
singleparadox committed Oct 9, 2018
1 parent 30f40fe commit f83fcea
Show file tree
Hide file tree
Showing 6 changed files with 9,909 additions and 44 deletions.
15 changes: 8 additions & 7 deletions C/helloWorld.c
@@ -1,9 +1,10 @@
#include<stdio.h>
int main()
#include <stdio.h>
char copy()
{
int i;
printf("Enter any number to print hello world");
int j=scanf("%d",&i);
printf("The number is: %d",j);
printf("Welcome to the worlld of C programming");
printf("Hello World\n");
}
int main()
{
copy();
return 0;
}
2 changes: 1 addition & 1 deletion Html/HelloWorld.html
Expand Up @@ -5,7 +5,7 @@
<title>Hello World!</title>
</header>

<body bgcolor="lime">
<body>
<h1><B><U><I>Hello World!</I></U></B></h1>
<bg>orange</bg>
</body>
Expand Down
44 changes: 10 additions & 34 deletions Python/BubbleSort.py
@@ -1,37 +1,13 @@
def bubbleSort(arr):
n = len(arr)

# Traverse through all array elements
for i in range(n):

# Last i elements are already in place
for j in range(0, n-i-1):

# traverse the array from 0 to n-i-1
# Swap if the element found is greater
# than the next element
if arr[j] > arr[j+1] :
arr[j], arr[j+1] = arr[j+1], arr[j]

# Driver code to test above
arr = []
num1 = int(input('enter the value\n'))
num2 = int(input('enter the value\n'))
num3 = int(input('enter the value\n'))
num4 = int(input('enter the value\n'))
num5 = int(input('enter the value\n'))
import random

#For putting the values in list arr:-
arr.append(num1)
arr.append(num2)
arr.append(num3)
arr.append(num4)
arr.append(num5)
def bubbleSort(lists):
for j in range(0, len(lists)-1-i):
if(lists[j]>lists[j+1]):
lists[j+1], lists[j] = lists[j], lists[j+1]

lists = random.sample(range(0, 5001), 5000)
print(lists)


bubbleSort(arr)

print ("Sorted array is:")
for i in range(len(arr)):
print ("%d" %arr[i]),
bubbleSort(lists)

print(lists)
4 changes: 3 additions & 1 deletion Python/Hello-World.py
@@ -1 +1,3 @@
print("Hello, World!")
num=int(input("enter a number"))
if(num==1):
print("Hello, World!")
4 changes: 3 additions & 1 deletion Python/Hello-world.py
@@ -1 +1,3 @@
print("Hello, World!")
num=int(input("enter a number"))
if(num==1):
print("Hello, World!")

0 comments on commit f83fcea

Please sign in to comment.