Program to print all even digit from a number using recursion in C++. Solution #include <iostream> using namespace std; void calculate(int n){ if(n == 0) return; calculate(n / 10); if((n%10)%2==0)…
© Study Trigger. All Rights Reserved
Program to print all even digit from a number using recursion in C++. Solution #include <iostream> using namespace std; void calculate(int n){ if(n == 0) return; calculate(n / 10); if((n%10)%2==0)…