Check if a given number exists in an array in C++

By Gagan Gupta

In this tutorial, we will learn how to check whether a given number is present in an array in C++. #include<iostream> using namespace std; int main() { int array[6]={1,2,3,4,.... Read More

Pick a random card from a deck of cards in C++

By Gagan Gupta

In this tutorial, we will learn to write code to pick a random card from a deck of cards in c++ #include <iostream> #include <cstdlib> //for rand and srand #include <.... Read More

Print deck of cards in C++

By Gagan Gupta

In this experiment, we will learn how to print the deck of cards in C++ language. #include<iostream> #include<string> using namespace std; int main(){ std::string cards.... Read More

Classifying Threat using Extra Tree Classifier

By Sanskar

Extra Tree Classifier is a type of machine learning algorithm which is closely related to the decision tree algorithm. It collects the result of various decision trees into a fores.... Read More

Iterate over the words in a string in C++

By Raghav Khandelwal

In this tutorial, we will learn how to iterate over the words in a string in C++. A string is a data type in C++ used to store an array of characters. A string is different from a .... Read More

How to fetch JSON data in Node.js

By Siddharth Saurav

Hello programmers, Today you will learn how we can fetch JSON data in a Node.js app. Here, our JSON data will be stored in the local machine. As we are working with files so firstl.... Read More

Nested While Loops In Python With Examples

By Aditi Deo

Loops are significant in python as without them we would have to repeat instructions all over again which could be time-consuming for a programmer. A while loop simply evaluates a .... Read More

Constructor in Python

By Hussain Quadri

In this tutorial, we will learn about Constructor in Python. In Object-oriented Programming, a special kind of method is used to instantiate an object. It initializes values to the.... Read More