A blog to help students to learn programming in various languages including C, C++, Java, Python and many more.

Subscribe For Free Latest Updates!

We'll not spam mate! We promise.

Sunday, 10 July 2016


seFibo_py
 In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 01, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144..... The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34. By definition, the first two numbers in the Fibonacci sequence are either 1 and...
Read More >>

Saturday, 9 July 2016


seFibo
  In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 01, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144..... The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34. By definition, the first two numbers in the Fibonacci sequence are either...
Read More >>

Friday, 8 July 2016


seFact_py
In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5  *  4  *  3  *  2  * 1 = 120. The value of 0! is 1, according to the convention for an empty product. The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic occurrence is the fact that...
Read More >>


seFact
  In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5  *  4  *  3  *  2  * 1 = 120. The value of 0! is 1, according to the convention for an empty product. The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic occurrence is the...
Read More >>

Saturday, 19 March 2016


search
     In computer science, a search allows the efficient retrieval of specific items from a set of items, such as a specific record from a database. The simplest, most general, and least efficient search structure is merely an unordered sequential list of all the items. Locating the desired item in such a list, by the linear search method, inevitably requires a number of operations proportional to the number n of items, in the worst case as well as in the...
Read More >>


seFact
         In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5  *  4  *  3  *  2  * 1 = 120. The value of 0! is 1, according to the convention for an empty product. The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic...
Read More >>


seFibo
         In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 01, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144..... The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34. By definition, the first two numbers in the Fibonacci...
Read More >>

Thursday, 18 February 2016


deletion
Output #include <iostream> using namespace std; int search(int *a,int x,int n); int main() { int loc,n,data,a[100]; cout<<"Enter no. of values: "; cin>>n; cout<<"Enter "<<n<<" values: "; for(int x=0;x<n;x++) { cin>>a[x]; } cout<<"Entered array is: "<<"\n"; for(int x=0;x<n;x++) { cout<<a[x]<<"  "; } cout<<"\nEnter element you want to delete: "; cin>>data; loc=search(&a[0],data,n); ...
Read More >>

Sunday, 24 January 2016


seFibo
        In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 01, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144..... The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling; this one uses squares of sizes 1, 1, 2, 3, 5, 8, 13, 21, and 34. By definition, the first two numbers in the Fibonacci...
Read More >>


seFact
     In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 5! = 5  *  4  *  3  *  2  * 1 = 120. The value of 0! is 1, according to the convention for an empty product. The factorial operation is encountered in many areas of mathematics, notably in combinatorics, algebra, and mathematical analysis. Its most basic occurrence...
Read More >>


LinkedListInsertion
Output #include <iostream> using namespace std; struct node { int info; node* link; }*start,*nNode; node * createNew() { nNode = new node; cout<<"Enter info for node: "; cin>>nNode->info; return (nNode); } node display(node* temp) { while(temp!=NULL) { cout<<temp->info<<"\n"; temp=temp->link; } } int main() { int n=2,s,af; start=NULL; node* tempPtr; cout<<"Press 1 to enter new node: "; cin>>n; while(n==1)...
Read More >>


LinkedListSrch
Output #include <iostream> using namespace std; struct node { int info; node* link; }*start,*nNode; node * createNew(int in) { nNode = new node; nNode->info=in; return (nNode); } node display(node* temp) { while(temp!=NULL) { cout<<temp->info<<"  "; temp=temp->link; } cout<<"\n"; } node * search(node* tempPtr,int item) { while(tempPtr!=NULL && tempPtr->info!=item) { tempPtr=tempPtr->link; } return (tempPtr); } int...
Read More >>

Saturday, 23 January 2016


QuadicEq
Output #include <iostream> #include <math.h> using namespace std; int main() { int a,b,c,d=0,x; cout<<"Enter a,b & c:"; cin>>a>>b>>c; d=(b*b)-4*a*c; cout<<"Result:\n"; if(d<0) { cout<<"d<0"<<endl; cout<<(-b-sqrt(d))/2*a<<endl; cout<<(-b+sqrt(d))/2*a<<endl; } else if(d==0) { cout<<"D=0"<<endl; cout<<-b/2*a<<endl;; } else { cout<<"D>0"<<endl; ...
Read More >>


mergSort
Output #include <iostream> using namespace std; int mergeSort(int a[],int beg,int end); int merge(int a[],int beg,int mid,int end); int main() { int n,a[100]; cout<<"Enter no. of values: "; cin>>n; cout<<"Enter "<<n<<" values: "; for(int x=0;x<n;x++) { cin>>a[x]; } mergeSort(a,0,n-1); cout<<"Array after Sorting using Merge Sort:\n"; for(int x=0;x<n;x++) { cout<<a[x]<<"\n"; } return(0); } int...
Read More >>


binarySearch
Output #include <iostream.h> using namespace std; int a[100]; int main() { int n,item,loc; int binary(int beg,int end,int item); cout<<"Enter no. of elements: "; cin>>n; cout<<"Enter "<<n<<" elements in Sorted Order: "; for(int i=0;i<n;i++) { cin>>a[i]; } cout<<"Enter item you want to search: "; cin>>item; loc=binary(0,n,item); if(a[loc]==item) { cout<<"\nData is Found at Location: "<<loc<<"\n"; ...
Read More >>


search
     In computer science, a search data structure is any data structure that allows the efficient retrieval of specific items from a set of items, such as a specific record from a database. The simplest, most general, and least efficient search structure is merely an unordered sequential list of all the items. Locating the desired item in such a list, by the linear search method, inevitably requires a number of operations proportional to the number n of items,...
Read More >>


insertionSort
Output #include <iostream> using namespace std; int insertionSort(int a[],int n); int main() { int n,data,a[100]; cout<<"Enter no. of values: "; cin>>n; cout<<"Enter "<<n<<" values: "; for(int x=0;x<n;x++) { cin>>a[x]; } insertionSort(a,n); cout<<"Array after Sorting using Insertion Sort: \n"; for(int x=0;x<n;x++) { cout<<a[x]<<"\n"; } return(0); } int insertionSort(int a[],int n) { int...
Read More >>

Monday, 18 January 2016


primeNnum
Output #include <iostream.h> using namespace std; int main() {    int n, i = 3, count, c;    cout<<"Enter the number of prime numbers required: ";    cin>>n;    if ( n >= 1 ) {       cout<<"First "<<n<<" prime numbers are:\n";       cout<<"2\n";    }    count = 2 ;    while (count <= n) {       for ( c = 2 ;...
Read More >>

Sunday, 17 January 2016


LargestN
Output #include <iostream> using namespace std; int main() { int z,n,a[100]; cout<<"Enter no. of values: "; cin>>n; cout<<"Enter "<<n<<" values: "; for(int x=0;x<n;x++) { cin>>a[x]; } z=a[0]; for(int x=1;x<n;x++) { if(z<a[x]) { z=a[x]; } } cout<<"Largest: "<<z<<"\n"; } ...
Read More >>

Saturday, 16 January 2016


2dArrayEleSum
#include<iostream> using namespace std; int main() { int a[100][100]; int r,c; cout<<"Enter no. of rows & columns: "; cin>>r>>c;; cout<<"Enter "<<r*c<<" values : "; for(int i=0;i<r;i++) { for(int j=0;j<c;j++) { cin>>a[i][j]; } } for(int i=0;i<r;i++) { for(int j=0;j<c;j++) { a[i][c]+=a[i][j]; } } for(int i=0;i<r;i++) { for(int j=0;j<c+1;j++) { a[r][j]+=a[i][j]; } } ...
Read More >>


QuickSort
#include <iostream> using namespace std; int quickSort(int a[],int l,int r); int main() { int n,data,a[100]; cout<<"Enter no. of values: "; cin>>n; cout<<"Enter "<<n<<" values : "; for(int x=0;x<n;x++) { cin>>a[x]; } quickSort(a,0,n); cout<<"Array after Sorting using Quick Sort: \n"; for(int x=0;x<n;x++) { cout<<a[x]<<"\n"; } return(0); } int quickSort(int a[],int l,int r) { int temp; if(r-l<=1)...
Read More >>


ptrBubble
Bubble sort, sometimes referred to as sinking sort, is a simple sorting algorithm that repeatedly steps through the list to be sorted, compares each pair of adjacent items and swaps them if they are in the wrong order.  The pass through the list is repeated until no swaps are needed, which indicates that the list is sorted. The algorithm, which is a comparison sort, is named for the way smaller elements "bubble" to the top of the list....
Read More >>


arrayRev
An array type is a data type that is meant to describe a collection of elements (values or variables), each selected by one or more indices (identifying keys) that can be computed at run time by the program. Such a collection is usually called an array variable, array value, or simply array. By analogy with the mathematical concepts of vector and matrix, array types with one and two indices...
Read More >>
Page 1 of 3123Next


Copyright © 2016 - ProgrmIt - All Rights Reserved
(Articles Cannot Be Reproduced Without Author Permission.)
Design By : | Powered By: Blogger