wikicoder1's articles C Programs Linked List in C C Program to Create a Singly Linked List & Display the Elements in the List using function About the program Linked list as we know is an ordered set of data elements, each containing a link to its successor. Program #include <stdio.h> #include <stdlib.h> struct node { int num; struct node *nextptr; }*stnode; void createNodeList(int n); void displayList(); int main() { int n Saving Bookmark this article Bookmarked DataStructure Introduction to Data Structure and Data Type Introduction The computer system is used essentially as Data Management System where ‘Data’ are very important thing for it. The data can be referred to in many ways such as data, data items, data structures etc. The data must be represented, stored, organized, processed and manage so Saving Bookmark this article Bookmarked MongoDB Introduction to MongoDB MongoDB is a NoSQL database written in C,C++ and JavaScript. It’s an opensource document database developed by MongoDB Inc. The first version was released on 11th February 2009. MongoDB uses JSON like document and schema. Popularly MongoDB is used in MERN (MongoDB+ExpressJs+React&Redux+ Saving Bookmark this article Bookmarked Loops in C++ C++ Program to Find Factorial For any positive number n, it’s factorial is given by: factorial = 1*2*3...*n Factorial of negative number cannot be found and factorial of 0 is 1. Program #include <iostream> using namespace std; int main() { unsigned int n; unsigned long long factorial = 1; cout << "Enter a posit Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Check Leap Year All years which are perfectly divisible by 4 are leap years except for century years (years ending with 00) which is leap year only it is perfectly divisible by 400. Program #include <iostream> using namespace std; int main() { int year; cout << "Enter a year: "; cin >> year; if (y Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Find Largest Number Among Three Numbers Program 1 using if only #include <iostream> using namespace std; int main() { float n1, n2, n3; cout << "Enter three numbers: "; cin >> n1 >> n2 >> n3; if(n1 >= n2 && n1 >= n3) { cout << "Largest number: " << n1; } if(n2 >= n1 && n2 Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Check Whether a character is Vowel or Consonant. Five alphabets a, e, i, o and u are known as vowels. All other alphabets except these 5 alphabets are known are consonants. Program #include <iostream> using namespace std; int main() { char c; int isLowercaseVowel, isUppercaseVowel; cout << "Enter an alphabet: "; cin >> c; // eval Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Check Whether Number is Even or Odd Program 1 using if else statement #include <iostream> using namespace std; int main() { int n; cout << "Enter an integer: "; cin >> n; if ( n % 2 == 0) cout << n << " is even."; else cout << n << " is odd."; return 0; } Output Enter an integer: 23 Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Find All Roots of a Quadratic Equation For a quadratic equation ax2+bx+c = 0 (where a, b and c are coefficients), it’s roots is given by following the formula. The term b2-4ac is known as the discriminant of a quadratic equation. The discriminant tells the nature of the roots. If discriminant is greater than 0, the roots are real a Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Multiply two Numbers Program #include <iostream> using namespace std; int main() { double firstNumber, secondNumber, productOfTwoNumbers; cout << "Enter two numbers: "; // Stores two floating point numbers in variable firstNumber and secondNumber respectively cin >> firstNumber >> secondNumber; / Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Find ASCII Value of a Character A character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself in C programming. That value is known as ASCII value. For example, ASCII value of ‘A’ is 65. What this means is that, if you assign ‘A’ to a character variable, 65 i Saving Bookmark this article Bookmarked Basics in C++ C++ Program to Swap Two Numbers with and without using third variable In this article, we will use two methods to swap two variables, one with a third variable and another without 3 third variable. 1. Program using the third variable For using the third variable we will take two input as a and b and third variable temp. for the logic, we will first assign first Saving Bookmark this article Bookmarked Loading Load more

C Programs Linked List in C C Program to Create a Singly Linked List & Display the Elements in the List using function About the program Linked list as we know is an ordered set of data elements, each containing a link to its successor. Program #include <stdio.h> #include <stdlib.h> struct node { int num; struct node *nextptr; }*stnode; void createNodeList(int n); void displayList(); int main() { int n Saving Bookmark this article Bookmarked

DataStructure Introduction to Data Structure and Data Type Introduction The computer system is used essentially as Data Management System where ‘Data’ are very important thing for it. The data can be referred to in many ways such as data, data items, data structures etc. The data must be represented, stored, organized, processed and manage so Saving Bookmark this article Bookmarked

MongoDB Introduction to MongoDB MongoDB is a NoSQL database written in C,C++ and JavaScript. It’s an opensource document database developed by MongoDB Inc. The first version was released on 11th February 2009. MongoDB uses JSON like document and schema. Popularly MongoDB is used in MERN (MongoDB+ExpressJs+React&Redux+ Saving Bookmark this article Bookmarked

Loops in C++ C++ Program to Find Factorial For any positive number n, it’s factorial is given by: factorial = 1*2*3...*n Factorial of negative number cannot be found and factorial of 0 is 1. Program #include <iostream> using namespace std; int main() { unsigned int n; unsigned long long factorial = 1; cout << "Enter a posit Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Check Leap Year All years which are perfectly divisible by 4 are leap years except for century years (years ending with 00) which is leap year only it is perfectly divisible by 400. Program #include <iostream> using namespace std; int main() { int year; cout << "Enter a year: "; cin >> year; if (y Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Find Largest Number Among Three Numbers Program 1 using if only #include <iostream> using namespace std; int main() { float n1, n2, n3; cout << "Enter three numbers: "; cin >> n1 >> n2 >> n3; if(n1 >= n2 && n1 >= n3) { cout << "Largest number: " << n1; } if(n2 >= n1 && n2 Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Check Whether a character is Vowel or Consonant. Five alphabets a, e, i, o and u are known as vowels. All other alphabets except these 5 alphabets are known are consonants. Program #include <iostream> using namespace std; int main() { char c; int isLowercaseVowel, isUppercaseVowel; cout << "Enter an alphabet: "; cin >> c; // eval Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Check Whether Number is Even or Odd Program 1 using if else statement #include <iostream> using namespace std; int main() { int n; cout << "Enter an integer: "; cin >> n; if ( n % 2 == 0) cout << n << " is even."; else cout << n << " is odd."; return 0; } Output Enter an integer: 23 Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Find All Roots of a Quadratic Equation For a quadratic equation ax2+bx+c = 0 (where a, b and c are coefficients), it’s roots is given by following the formula. The term b2-4ac is known as the discriminant of a quadratic equation. The discriminant tells the nature of the roots. If discriminant is greater than 0, the roots are real a Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Multiply two Numbers Program #include <iostream> using namespace std; int main() { double firstNumber, secondNumber, productOfTwoNumbers; cout << "Enter two numbers: "; // Stores two floating point numbers in variable firstNumber and secondNumber respectively cin >> firstNumber >> secondNumber; / Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Find ASCII Value of a Character A character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself in C programming. That value is known as ASCII value. For example, ASCII value of ‘A’ is 65. What this means is that, if you assign ‘A’ to a character variable, 65 i Saving Bookmark this article Bookmarked

Basics in C++ C++ Program to Swap Two Numbers with and without using third variable In this article, we will use two methods to swap two variables, one with a third variable and another without 3 third variable. 1. Program using the third variable For using the third variable we will take two input as a and b and third variable temp. for the logic, we will first assign first Saving Bookmark this article Bookmarked