plz write this program fully with variable description
Attachments:
Answers
Answered by
0
C++
#include<iostream>
using namespace std;
int main() {
string name[20];
for (int i=0; i<20; i++){
cin>> name[i]
}
string search;
cin>> search;
int flag=0;
for (int i=0; i<20; i++) {
if (name[i]==search){
cout<< "Name Found";
flag=1;
}
if (flag==0)
cout<< "Name Not Found";
}
Similar questions