#include<stdio.h> #include<conio.h> int countDigits(num); int main() { …
To print a value to the screen, write the word cout, followed by the insertion operat…