by admin | Mar 3, 2021 | Python

Python program to convert Celsius into Fahrenheit This program explains how we can take the temperature in Celsius and convert them into Fahrenheit. Celsius Celsius, also known as centigrade, is a measurement unit representing temperature. It is named after the...
by admin | Mar 3, 2021 | Python

Python Program to Convert Decimal into Binary, Octal, and Hexadecimal We know that the most widely used number system is a decimal system, but the computer only understands binary values. The binary, octal, and hexadecimal number systems are related to each other. The...
by admin | Mar 3, 2021 | Python

Python program to perform the arithmetic operation This program will write a code to perform some basic arithmetic operations like addition, subtraction, multiplication, exponent, modulus, and division. Here we first need to enter two numeric values, and then by using...
by admin | Mar 3, 2021 | Python

Python program to display ASCII value of the character The full form of ASCII is American Standard Code for Information Interchange. This example explains a program in Python to find the ASCII value of any input character. ASCII is a character encoding standard that...
by admin | Mar 3, 2021 | Python

Python program to find the area of the triangle This article will discuss how to find the area of a triangle in Python with all three given sides. The area of a triangle represents the total region that is enclosed by the three sides of any particular triangle. If we...
by admin | Mar 3, 2021 | Python

Python program to find the area of a circle This article will discuss how to find the area of a circle in Python with a given radius. The area of a circle represents the number of square units inside the circle. The following is a mathematical formula to calculate the...
by admin | Mar 3, 2021 | Python

Python program to add two number This program will add the two numbers and display their sum on the screen. Example: Input: Number1 = 20 Number2 = 30 Output: Sum = 20 + 30 = 50 1234 Input: Number1 = 20 Number2 = 30 Output: Sum = 20 + 30...
by admin | Mar 3, 2021 | Python

Python program to check whether a given number is prime or not A positive integer greater than 1 is called a prime number if it is divisible by one and number itself except 1. Example: 2,3, 7, 11, 13, 17, 19 are prime numbers, while 6 is not a prime number. Source...
by admin | Mar 3, 2021 | Python

Palindrome program in python A number or string is said to be a palindrome if we invert the number or string and the string or number remains the same as the original number or string. Example: Input: TUTURIALANDEXAMPLE Output: This is not a palindrome Input: 151...
by admin | Mar 3, 2021 | Python

Python program to find the GCD or HCF The largest positive integer that perfectly divides the two numbers is the HCF (Highest Common Factor) or GCD (Greatest Common Deviser). For example, the HCF or GCD of 10 and 12 is 2. Using Loop The following is a source code that...
by admin | Mar 3, 2021 | Python

Python Program to Check Leap Year Leap year: We all know that each year has 365 or 366 days. But whenever a year has 366 days, then the year is said to be a leap year. This extra day is always coming in February month that occurs after every four years. Hence leap...
by admin | Mar 2, 2021 | Python

Python program to find Fibonacci series A Fibonacci series is an integer sequence of 0, 1, 1, 2, 3, 5, 8…. We can identify the Fibonacci series as any number sequence that has integers 0 and 1 at first and second place, and the rest of the sequence term will be...
by admin | Mar 2, 2021 | Python

Python program to find factorial of a given number Factorial is a non-negative integer. It is the product of all positive integers from 1 to the number we are going to calculate the factorial. It is represented by (!). Example: Factorial of 5 is 5*4*3*2*1 = 120 Source...
by admin | Mar 2, 2021 | Python

Simple Calculator Program in Python This example helps to learn how to create a simple calculator program to perform operations like addition, subtraction, multiplication, and division. Source Code The following is the source code to perform simple calculations. In...
by admin | Mar 2, 2021 | java

Encapsulation Program in Java Encapsulation program in Java demonstrates the technique to bind methods and fields in a single unit. The term encapsulation is inspired by the word ‘capsule’, which is made up of different varieties of medicine mixed together....
by admin | Mar 2, 2021 | java

Abstract Class Program in Java Abstraction is a technique by which a developer hides the implementation details from the user and shows only the functionality.It is not only confined to the programming. In the real-world also abstraction is achieved. For example, a...
by admin | Mar 2, 2021 | java

Inheritance Program in Java Inheritance is one of the important pillars of Object-Oriented Programming that facilitates parent-child relationships in programming. Using inheritance, we can create a new class with the help of an existing class. This newly created class...
by admin | Feb 27, 2021 | Python

Program to check whether a given number is Armstrong or not A number is said to be an Armstrong if the sum of each digit’s cube of a given number equals the original number. Example: Given number 153 1*1*1 + 5*5*5 + 3*3*3 = 153 So the given number is Armstrong....
by admin | Feb 27, 2021 | Python

Python program to check if two strings are anagram or not Problem: This is a python program that takes two strings and checks if given strings are anagram or not. Examples: Input: string1 = Education string2 = Cautioned Output: The strings are anagrams Input:...
by admin | Feb 27, 2021 | Python

Python program to find whether a given number is even or odd A number is said to be even if any number is completely divisible by 2, which means there is no remainder left or it is zero. If there is any remainder left, the number will be odd. We will use the remainder...
Page 1 of 16912345...10...»Last »