C/C++ Mathematical Programs Last Updated : 22 May, 2024 Comments Improve Suggest changes Like Article Like Report Mathematical Algorithms in programming are the specialized method to solve arithmetic problems such as finding roots, GCD, etc. Most of us are familiar with the conventional methods and concepts used to solve such problems but they may not be the best choice in programming, such as the best choice for finding GCD in programming is Euclidean Algorithm. In this article, we will discuss different optimal solutions for solving some common mathematical problems in C/C++. Mathematical Practice Problems in C/C++The following is the list of C/C++ programs based on the level of difficulty: EasyProgram for Fibonacci NumbersEfficient Way to Multiply with 7Check Divisibility by 7How to Check if a Given Number is Fibonacci Number?Multiply Two Integers without Using Multiplication, Division and Bitwise Operators, and No LoopsWrite Your Own Power without Using Multiplication(*) and Division(/) OperatorsAverage of a Stream of NumbersCheck Whether a Given Point Lies Inside a Triangle or NotEfficient Program to Print All Prime Factors of a Given NumberRussian Peasant (Multiply Two Numbers Using Bitwise Operators)MediumProgram for Fibonacci NumbersSieve of EratosthenesWrite an Efficient Method to Check if a Number is Multiple of 3Write a Program to Print All Permutations of Given StringLucky NumbersWrite a Program to Add Two Numbers in Base 14Babylonian Method for Square RootPrint all Combinations of Points that can Compose a Given NumberMake a Fair Coin from a Biased CoinShuffle a Given Array Using Fisher–yates Shuffle AlgorithmHardCount Numbers That Don’t Contain 3Magic Square | ODD OrderFind the Largest Multiple of 3 | Set 1 (Using Queue)DFA Based DivisionGenerate Integer from 1 to 7 with Equal ProbabilityGiven a Number, Find the Next Smallest PalindromeFind Day of the Week for a Given DatePrint All Permutations in Sorted (Lexicographic) OrderReservoir SamplingLexicographic Rank of a String Comment More infoAdvertise with us Next Article C/C++ Mathematical Programs R rahulsharmagfg1 Follow Improve Article Tags : C++ C++ Mathematical Programs C Mathematical Programs Practice Tags : CPP Similar Reads Bit Magic C/C++ Programs Bit manipulation, also known as bit magic is the process of using bit-level operations to manipulate individual bits of a number. It uses bitwise operators such as AND, OR, XOR, right shift, etc. to manipulate, set, and shift the individual bits. This is used to improve the efficiency of our program 3 min read Misc C Programs C Program to print environment variablesC Program to Swap two NumbersC program swap two numbers without using a temporary variableC Program to check if a given year is leap yearC Program to sum the digits of a given number in single statement?C program to print numbers from 1 to 100 without using lo 1 min read C/C++ Programs sArray C/C++ ProgramsC Program to find sum of elements in a given arrayC program to find largest element in an arrayRecursive C program to linearly search an element in a given arrayC program to multiply two matricesC/C++ Program for Given an array A[] and a number x, check for pair in A[] with sum 15+ min read C++ Mathematical Functions C++ being a superset of C, supports a large number of useful mathematical functions. These functions are available in standard C++ to support various mathematical calculations. Instead of focusing on implementation, these functions can be directly used to simplify code and programs. In order to use 4 min read Array C/C++ Programs C Program to find sum of elements in a given arrayC program to find largest element in an arrayC program to multiply two matricesC/C++ Program for Given an array A[] and a number x, check for pair in A[] with sum as xC/C++ Program for Majority ElementC/C++ Program for Find the Number Occurring Odd N 6 min read Like