Learn to print Pascal's triangle in three different ways in Java. The programs will take the height of the triangle as input and print the Pascal's triangle.
ReadJava program to print a cross star pattern using star or any other character. The program will take the height as input and it will print the cross star pattern.
ReadJava util.Arrays.copyOf() method is used to copy an array. This post will show you how to use copyOf() with examples.
ReadC++ program to access an element of a vector using index. We will use [] operator and the at() method. Learn what are the differences between [] and at().
ReadLearn how to subtract one number from another number in Python. This post will show you how to use the subtraction operator with examples.
ReadJava program to check if a number is Nelson number or not. This program will take one number as input and find out if that number is a Nelson number.
ReadPython program to check if a set contains an element or not. We can use in or not in to check if an item is in a set or not in Python. This post will show you how to do that with examples.
ReadJava program to check for a unique number. The program will take one number from the user and print if it is a unique number or not. A positive number is called a unique number if no digit is repeated in that number.
ReadJava program to check for an ugly number. This program will take one number as input from the user and print if it is ugly or not. Ugly numbers are numbers whose prime factors are 2,3, and 5.
ReadC++ STL vector containers explanation with example. Learn how to use iterators in vectors in C++ and methods available.
Read