#include #include using namespace std; int main() { int num;
#include
#include
using namespace std;
int main()
{
int num;
string name;
char again = ‘Y’;
while(again == ‘y’ || again == ‘Y’){
cout << “What is your name? n”; cin >> name;
cout << name << “. Enter your number: “; cin >> num;
//ask user for an number
if (num != 0)
{
if (num % 2 == 0)
{
cout << ((num = 0) ? “Even and positive n” : “Even and negative n”); } else { cout << ((num = 0) ? “Odd and positive n” : “Odd and negative n”); } } else { cout << “The number is zero n”; } cout <
<name<< ", do you want to go again? (y n)"; } cout << "thank you. have a good day! n"; return 0; it breaks at the loop and i cant figure out where went wrong!
</name<