Java program to swap two numbers

Write a java program to swap two numbersIn this program, you will learn the technique of swapping two numbers using temporary variable in java programming language.  Exchanging the values...
August 30, 2023

Java program to compute quotient and remainder

Write a java program to compute quotient and remainderIn this program, the quotient and remainder find in java programming language.The different parts of division are dividend, divisor, quotient...
August 27, 2023

Java program to find ASCII value of a character

Write a java program to find ASCII value of a characterIn this program, find and display the ASCII value of a character in java using typecasting and normal...
August 24, 2023

Write a Java program to add two integers

Java program to add two IntegersIn this program, two integers 11 and 12 are stored in integer variables first and second respectively.Then, first and second are added using the + operator, and its result is stored in another variable sum.Finally, sum is printed on the...
August 21, 2023

Write a Java program to print an Integer

How to print an integer entered by an userIn this program, an object of scanner class, reader is created to take input from standard input, Which is keyboard.Then, Enter a number prompt is printed to...
August 19, 2023

C Program to Find GCD (Greatest Common Divisor) Using Recursion

Write a C Program to Find G.C.D (Greatest Common Divisor) Using RecursionIn this C Program, we are reading the two integer number using 'a' and 'b' variable. The...
April 22, 2023

Find the Roots of a Quadratic Equation in C Programming

C program to find Roots of a Quadratic Equation.In this program, you will learn to find the roots of a quadratic equation in c programming.The standard form of...
March 07, 2023

C Program to display its own source code as output

 C Program to display its own source code as outputThis program is to display its own source code. it also explains logic to print source code of a...
October 26, 2022

Write a C program to print hollow pyramid star pattern

Hollow Pyramid Star PatternFor the pyramid at the first line it will print one star, and at the last line it will print n number of stars. For...
August 24, 2022