c

C program to convert binary values to octal

C program to convert binary values to octal. This post will show you the steps to convert a binary value to octal and we will write a C program to do the octal conversion using user input binary value.

Read
java

Java program to check if a number is a duck number or not

Java program to check if a number is a duck number or not. This program will take one number as input from the user and print if the number is a duck number or not.

Read
python

Python program to print a cross pattern using star

Learn to print a cross pattern using star or any other character in Python. It will take the height as input from the user and print the pattern for that height.

Read
python

Python in and not in operators explanation with examples

Python in and not in operators are used to check if an item is in a sequence or not. Learn how to use in and not in operators with different examples in this post.

Read
python

Python program to convert a binary to decimal

Python program to convert a binary value to decimal. Learn 4 different ways to convert binary to decimal. The program will take the binary value as input from the user and print the decimal output.

Read
java

Java program to check if a number is a spy number or not

Java program to check if a number is spy number or not. We will learn two different ways to get a number as input from the user and check if it is a spy number.

Read
java

3 different Java programs to print Pascal's triangle for a given height

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.

Read
java

Java program to print a cross star pattern

Java 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.

Read
java

Java.util.Arrays.copyOf() method explanation with example

Java util.Arrays.copyOf() method is used to copy an array. This post will show you how to use copyOf() with examples.

Read
C++

How to access an element of a vector using index in C++

C++ 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().

Read