Basic program in C/C++ And Java
Description GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest number that divides both of them. A simple solution is to find all prime…
Description GCD (Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest number that divides both of them. A simple solution is to find all prime…
Description To find factors of a number, check number divisible from 1 to n, if it divisible print it. C/C++ /* C Program to find factors of a Number */…
Description To find sum of first and last digit of a number first, find first and last digit. 1. To find last digit find modulus of number. When modulo divided…
Description To find Sqauares of all numbers from 1 to given range, take a loop from 1 to given range and find the sqaures of all numbers in that range.…
Description To convert octal to decimal, extract rightmost digits from octal number and multiply the digit with the proper base (Power of 8) and add it to the variable. At…
Description Convert decimal to binary means convert it in 0,1 format follow below program. C/C++ /* C Program to convert Decimal to Binary */ //Save it as ConvertDecimalToBinary.c #include<stdio.h> int…
Description Convert the given decimal number into an equivalent octal number means convert the number with base value 10 to base value 8. C/C++ /* C Program to convert Decimal…
Description The Hexadecimal number system comprises of 16 entities. These 16 entities consist of 10 digits, 0-9 representing the first 10 numbers of the hexadecimal system and for the remaining…
Description To convert binary to decimal, extract rightmost digits from binary number and multiply the digit with the proper base (Power of 2) and add it to the variable. At…