Page 1 of 1

} #include #include using namespace std; void print(int n){ int a=n; while(n >= 10) n/=10; cout<
Posted: Mon Jun 06, 2022 2:30 pm
by answerhappygod
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 1
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 1 (41.51 KiB) Viewed 20 times
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 2
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 2 (41.51 KiB) Viewed 20 times
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 3
Include Iostream Include Cmath Using Namespace Std Void Print Int N Int A N While N 10 N 10 Cout N C 3 (41.51 KiB) Viewed 20 times
} #include <iostream> #include <cmath> using namespace std; void print(int n){ int a=n; while(n >= 10) n/=10; cout<<n; cout<<a%10; } int main(){ print(253); return 0;