Shriansh Kumar has Published 173 Articles

Java Program to Check if a given Number is Perfect Number

Shriansh Kumar

Shriansh Kumar

Updated on 25-Apr-2023 17:55:15

973 Views

When the sum of factors of a given number (after discarding the given number) is equal to the number itself is called a perfect number. In this article, we will create java programs to check if a given number is perfect or not. for the given problem we are going ... Read More

Java Program to Calculate Sum of Two Byte Values Using Type Casting

Shriansh Kumar

Shriansh Kumar

Updated on 25-Apr-2023 17:38:17

341 Views

When we convert a data type to another data type, we call it as type casting. There are two types of type casting in java explicit and implicit. When we type cast a higher datatype to a lower data type then, it is called explicit type casting and it is ... Read More

Java Program to Categorize Taller, Dwarf and Average by Height of a Person

Shriansh Kumar

Shriansh Kumar

Updated on 25-Apr-2023 17:37:05

228 Views

First, we need to define taller, dwarf and average height of person. A person with height between 170cm to 195cm is considered as taller, height in the range of 150cm to 170cm is considered as average, person whose height is below 150cm is considered as dwarf and person whose height ... Read More

Advertisements