string

 avatar
NguyenAnhQuan
c_cpp
7 months ago
342 B
0
Indexable
Never
#include <iostream>
#include <string.h>
using namespace std;
#define MAX 300

int main()
{
	char s[MAX];

	cin.getline(s, sizeof(s));

	bool flag = 1;
	for (char i : s) 
	{
		//cout << i;
		if (isdigit(i)) 
		{
			flag = 0; 
			break;
		}
	}

	if (flag) cout << s; 
	else cout << "CHUOI KHONG HOP LE.";

	return 0;
}