diff --git a/C++/Factorial.cpp b/C++/Factorial.cpp index 66d551bc9..8474049e3 100644 --- a/C++/Factorial.cpp +++ b/C++/Factorial.cpp @@ -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; diff --git a/C++/Palidrome.cpp b/C++/Palidrome.cpp index fc9223400..b95a9d321 100644 --- a/C++/Palidrome.cpp +++ b/C++/Palidrome.cpp @@ -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); diff --git a/LaTeX/LaTeX.tex b/LaTeX/LaTeX.tex index d27547bec..02c2599be 100644 --- a/LaTeX/LaTeX.tex +++ b/LaTeX/LaTeX.tex @@ -1,4 +1,4 @@ \documentclass{article} \begin{document} -Hello World +Hello peeps \end{document} diff --git a/MATLAB/cmpsimp.m b/MATLAB/cmpsimp.m index 727592b09..4f1f48aa9 100644 --- a/MATLAB/cmpsimp.m +++ b/MATLAB/cmpsimp.m @@ -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)); diff --git a/Python/BubbleSort.py b/Python/BubbleSort.py index 6837acdcf..efbbb42a7 100644 --- a/Python/BubbleSort.py +++ b/Python/BubbleSort.py @@ -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)