#include <iostream>
#include <string.h>
using namespace std;
int main ()
{
char num [1000];
cout<<"PLEASE ENTER YOUR PHONE NUMBER : ";
cin>>num;
if (strlen (num) == 11)
{
cout<<num<<" THE NUMBER IS CORRECT"<<endl;
}
else
{
cout<<num<<" THE NUMBER IS NOT CORRECT"<<endl;
}
return 0;
}
OUTPUT
No comments