## C program to print HCF (GCD) of two numbers

In this tutorial, you will learn how to write a program to print the HCF (GCD) of two numbers by using for loop conditional statement. Our Problem Statement: Here, we…

## Write a program in C to print ASCII character with values

In this tutorial, you will learn how to write a C program to print ASCII characters with values by using for loop. Our problem statement ASCII is a code that…

## C program to print LCM of two numbers

In this tutorial, you will learn how to write a program to print LCM of two numbers by using for loop conditional statement. Our problem statement: Here, we have to…

## C Program to swap values using third variable

In this tutorial, you will learn how to write a program to swap values using a third variable and a for-loop. Our problem statement Here we are taking two variables…

## C Program to Find Largest Among Three Numbers

In this tutorial, you will learn how to write a C program to find the largest/maximum among three numbers. Our problem statement Here we have to take three integer inputs…

## Java Program to check whether a given number is Prime or not using while loop

A whole number greater than 1 that cannot be exactly divided by any whole number other than itself and 1 is called a prime number. For Example: 3, 5, 7…

## Print all natural numbers in reverse order While loop Java

Positive whole numbers are called Natural numbers. In this program, we are trying to print all the natural numbers in reverse using a while loop starting from n to 1.…

## Find Sum of input number digits in Java

In this tutorial, we will be learning to write Java Program to print or calculate the sum of digits of a given number using a while loop. This program prints…

## Java Program to count the digits of a given number using while loop

In this program, we are counting the number of digits present in a given number. For Example Suppose if the given number is say 51 Output should be 2 if…

## Java program to check given character is Vowel or Consonant

In this tutorial, you will learn to write Java Program to check that given characters or alphabets are vowels or consonants. We will be using the if else statement of…

## Java Program to print sum of odd numbers between 1 to n using while loop

Any number when divided by 2 gives a remainder other than zero, which is an odd number. In our java program, we are using while loop to iterate the given…

## Print sum of all even numbers between 1 to n using while loop

Any number divisible by 2 is an even number. Here we are using a while loop to iterate the given numbers range. And calculating the sum of all even numbers…

## Java Program to print all odd number between 1 to 100 using while loop.

Any number when divided by 2 gives a remainder other than zero which is an odd number. Here we are writing a Java program using a while loop to print…

## Java Program to print even numbers between 1 to 100 using while loop

Any number divisible by 2 is an even number. Here we will see a writing program using a while loop to print all even numbers between 1 and 100. When…

## Print all natural numbers from 1 to n using while loop in Java

Positive whole numbers are called Natural numbers. In this Java Program, we are trying to print all the natural numbers using a while loop starting from 1 to n. Here…

## String Palindrome Program in Java

To Check whether String is Palindrome or not using Java Program, First Let's know about Palindrome. What is Palindrome? A String is called a palindrome, when it is not changed…

## Java program to check two strings are anagram or not

In this tutorial, we are going to learn to write Java Program to check whether two given strings are anagrams or not? What is Anagram? Two Strings are called Anagram…

## Java Program to check Person is valid for vote or not

To check whether the person is eligible the vote or not, the Person should complete the age of 18. This means A person age 18 or more is eligible/valid to…

## Java Program to check whether a triangle is equilateral, isosceles or scalene triangle

You have given the three sides of the triangle, now you have to identify whether the given triangle is an equilateral or isosceles, or scalene triangle. And We have to…

## Print number of days for given month in Java

In this tutorial, you will be learning to write a Java Program to print the total number of days available in the given month and year. Here we are taking…