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

commit #4780

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

commit #4780

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion C++/Factorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ unsigned long long factorialLoop(int n)
int main()
{
int n;
cout << "Enter a positive integer: ";
cout << "Enter a positive integer ";
cin >> n;
cout << "Factorial of " << n << " = " << factorial(n);
return 0;
Expand Down
2 changes: 1 addition & 1 deletion C++/Palidrome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int palindrome(int n)
int main()
{
int a,n,b,s=0;
cout << "Please enter a number" << endl;
cout << "enter a number" << endl;
cin >> n;
b = n;
s=palindrome(n);
Expand Down
2 changes: 1 addition & 1 deletion LaTeX/LaTeX.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\documentclass{article}
\begin{document}
Hello World
Hello peeps
\end{document}
4 changes: 2 additions & 2 deletions MATLAB/cmpsimp.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function In = cmpsimp(f,a,b,n)
function Inn = cmpsimp(f,a,b,n)
% n must be a positive even integer
h=(b-a)/n; %step size
x=linspace(a,b,n+1); %(n+1) equally spaced points
fx=feval(f,x); %function evaluations
%Composite Simpson
In=(h/3)*(fx(1)+4*sum(fx(2:2:n))+2*sum(fx(3:2:n-1))+fx(n+1));
Inn=(h/3)*(fx(1)+4*sum(fx(2:2:n))+2*sum(fx(3:2:n-1))+fx(n+1));
4 changes: 2 additions & 2 deletions Python/BubbleSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ def bubbleSort(arr):
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'))
#num5 = int(input('enter the value\n'))

#For putting the values in list arr:-
arr.append(num1)
arr.append(num2)
arr.append(num3)
arr.append(num4)
arr.append(num5)
#arr.append(num5)


bubbleSort(arr)
Expand Down