write a C++ program to check the given number is double digit or not
Answers
Answered by
2
Explanation:
include<iostream>
using namespace std;
void specialNumber(int n)
{
if (n < 10 || n > 99)
cout << "Invalid Input Number" << " should have 2 digits only";
}
int main()
{
int n = 59;
specialNumber(n);
return 0;
}
Similar questions