السلام عليكم
هذا نسوي
recursion
وشوفوا حلي
Write a recursive function Validate(char ch) that validate if value of the ch is *, #, %, &, @ or $, if not prompt the user to reenter it again.
int Validate(char ch)
{
cin>>ch;
if (ch !='#' && ch !='$' && ch !='%' && ch !='*' && ch !='&' && ch !='@')
return Validate(ch);
}
هل هو صحيح او لا
ولكم الشكر.....