// Java program to find the // Greatest Common Divisor import java.util.Scanner; public class Main { public static void main(String[] args) { int num1 = 0; int num2 = 0; int rem = 0; int X = 0; int Y = 0; Scanner SC = new Scanner(System.in); System.out.printf("Enter ...
// Java program to find the // Lowest Common Multiple import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner SC = new Scanner(System.in); int num1 = 0; int num2 = 0; int rem = 0; int lcm = 0; int X = 0; int Y = 0; System.out...
In the above code, we read the value of numbers and find the LCM of both numbers and then print the result on the console screen. Learn & Test Your Skills Python MCQsJava MCQsC++ MCQsC MCQsJavaScript MCQsCSS MCQsjQuery MCQsPHP MCQsASP.Net MCQs ...
C - Calculate value of nCr C - Calculate value of nPr C - Calculate product of two binary numbers C - Calculate addition of two complex numbers C - Extract last two digits from a given year C - Perform ATM Transactions C - Read height of a person andprint person is taller, dwarf, ...
Area of rectangle program in c /*C program to find area of a rectangle.*/#include<stdio.h>intmain(){floatl,b,area;printf("Enter the value of length:");scanf("%f",&l);printf("Enter the value of breadth:");scanf("%f",&b);area=l*b;printf("Area of rectangle:%f\n",area);ret...
In the above program, we created two functionscalculateRoot()andmain(). ThecalculateRoot()function is used to find-out the roots of a Quadratic Equation. In themain()functiom, we read three integer numbersa,b,cfrom the user and called thecalculateRoot()function to find-out the roots of...
C - Calculate value of nCr C - Calculate value of nPr C - Calculate product of two binary numbers C - Calculate addition of two complex numbers C - Extract last two digits from a given year C - Perform ATM Transactions C - Read height of a person andprint person is taller, dwarf, ...
C - Calculate value of nCr C - Calculate value of nPr C - Calculate product of two binary numbers C - Calculate addition of two complex numbers C - Extract last two digits from a given year C - Perform ATM Transactions C - Read height of a person andprint person is taller, dwarf, ...