Advanced Number Programs
C++ bases, Armstrong, neon. Remainders come out backwards. Reverse them.
13 programs · open one, then the next
Start with Check Strong Number- 01Check Strong NumberIntermediateCheck Strong Number in C++ (5 Programs).Open example →cpp#include <iostream> using namespace std; int factorial(int n) {
- 02Calculate Power of a NumberBeginnerCalculate Power of a Number in C++ (6 Programs).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 03Calculate Compound InterestBeginnerC++ Program to Calculate Compound Interest (5 Methods).Open example →cpp#include <iostream> #include <iomanip> #include <cmath> using namespace std;
- 04Reverse a NumberBeginnerHow to Reverse a Number in C++ (6 Programs With Output).Open example →cpp#include <iostream> using namespace std; int main() {
- 05Convert Binary to DecimalIntermediateC++ Program to Convert Binary to Decimal (5 Ways With Output).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 06Convert Decimal to BinaryIntermediateDecimal to Binary Conversion in C++ (5 Programs).Open example →cpp#include <iostream> using namespace std; int main() {
- 07Convert Octal to DecimalIntermediateConvert Octal to Decimal in C++ (6 Programs).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 08Convert Decimal to OctalIntermediateDecimal to Octal in C++ (4 Programs).Open example →cpp#include <iostream> using namespace std; int main() {
- 09Convert Binary to OctalIntermediateConvert Binary to Octal in C++ (5 Programs).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 10Convert Octal to BinaryIntermediateConvert Octal to Binary in C++ (5 Programs).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 11Check Neon NumberIntermediateCheck Neon Number in C++ (4 Programs).Open example →cpp#include <iostream> using namespace std; bool isNeon(int num) {
- 12Check Narcissistic NumberIntermediateCheck Narcissistic Number in C++ (4 Programs).Open example →cpp#include <iostream> #include <cmath> using namespace std;
- 13Convert Char to IntBeginnerEight ways to turn a digit character into an int. ch - '0' is the one you'll actually use.Open example →cpp#include <iostream> #include <string> #include <sstream> #include <cstdlib>