#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void main()
{
srand(time(0));
int a = rand() % 100;
int b = rand() % 100;
int c = rand() % 100;
cout<<a<<"+"<<b<<"+"<<c<<"="<<endl;
int answer;
cin>>answer;
cout<<((answer == a + b + c) ? "right" : "wrong")<<endl;
}
#include <cstdlib>
#include <ctime>
using namespace std;
void main()
{
srand(time(0));
int a = rand() % 100;
int b = rand() % 100;
int c = rand() % 100;
cout<<a<<"+"<<b<<"+"<<c<<"="<<endl;
int answer;
cin>>answer;
cout<<((answer == a + b + c) ? "right" : "wrong")<<endl;
}