Java program to print a reverse half star and number pyramid pattern in 3 different ways. We will learn how to use for loops, while loops and number pyramid pattern with examples.
ReadPython program to print the multiplication table of a number in two different ways. We will learn how to use a for loop and how to use a while loop to print the multiplication table.
ReadPython program to calculate GCD or HCF of two user input numbers. Learn how to do it by using a for loop, by reverse looping and by Euclid's division algorithm.
ReadC++ program to copy the content of one file to another. We will learn 2 different ways to do it, by using fgetc, fputc and by using fstream in this post with examples.
ReadPython program to check if a number is a Niven or Harshad number or not. The program will take one number as input from the user and print if it is a Niven or Harshad number.
ReadJava program to print hello world or any other string without semicolon. We will use if-else statement, for loop and StringBuilder append method to print the message without any semicolon in Java.
ReadJava program to find the power of a number using recursion. This post will show you what is a recursive function and how to find the power of a number using recursion in Java.
ReadJava program to calculate compound interest with user-input values. Learn the formula to calculate compound interest and how to write it programmatically using Java.
ReadJava program to print the total number of days in a given month of a year. The program will take the month and year values as inputs from the user and print the number of days for that month in 5 different ways.
ReadC++ program to print a diamond shape pattern using star or any other character. It will use a for loop or while loop to print the pattern with user given height.
Read