#include <iostream>
#include <cmath>
#include <windows.h>
char a[100];
int main(){
using namespace std;
cin >> a;
if (a == 'si')
{
cout << a <<" is 'Yes'"<<endl;
}
else if (a == 'hh'){
cout <<"baf"<<endl;
}
else if (a == 'hfs'){
cout <<"fgy"<<endl;
}
else
{
cout <<"fua"<<endl;
}
system ("pause");
return 0;
}
char a;
char a[100];
{
cout <<"The English translation for "<< a <<" is 'Yes'"<<endl;
}
else
{
cout <<"fua"<<endl;
}
char a;
char a[100]
char a='a';
char a[10]="asdaasdsa";
#include <string>
#include <iostream>
#include <cmath>
#include <windows.h>
char a[100];
int main(){
using namespace std;
cin >> a;
if (strcmp(a,"si")==0)
{
cout << a <<" is 'Yes'"<<endl;
}
else if (strcmp(a,"hh")==0){
cout <<"baf"<<endl;
}
else if (strcmp(a,"hfs")==0'){
cout <<"fgy"<<endl;
}
else
{
cout <<"fua"<<endl;
}
system ("pause");
return 0;
}
#include <iostream>
#include <cmath>
#include <windows.h>
using namespace std;
char a[100];
int main()
{
cin >> a;
if (a[1] == 'si')
{
cout << a <<" is 'Yes'"<<endl;
}
//any integer can go in between the brackets [] try using an integer var
else if (a[1] == 'hh')
{
cout <<"baf"<<endl;
}
else if (a[1] == 'hfs')
{
cout <<"fgy"<<endl;
}
else
{
cout <<"fua"<<endl;
}
system ("pause");
return 0;
}