Ifelse
Ifelse
Ifelse
#include <string>
using namespace std;
int main() {
string gender;
int age;
return 0;
}
>
#include <iostream>
//#include <string>
using namespace std;
int main() {
string gender;
int age;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int ageAli, ageHamza, ageBasit;
// Input ages
cout << "Enter age of Ali: ";
cin >> ageAli;
cout << "Enter age of Hamza: ";
cin >> ageHamza;
cout << "Enter age of Basit: ";
cin >> ageBasit;
return 0;
}
#include <iostream>
using namespace std;
int main() {
char operation;
float num1, num2;
return 0;
}
#include <iostream>
using namespace std;
int main() {
char operation;
float num1, num2;
default:
cout << "Error: Invalid operator!";
break;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
char ch;
return 0;
}