You are viewing a single comment's thread. Return to all comments →
bool InRange(unsigned short int x) { if (Low_Limit <= x && x <= High_Lmit ) { return true; } else { return false; } }
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ unsigned short int a , b ,c ;
std::cin >> a >> b >> c; if((InRange(a)) && (InRange(b) && (InRange(c)))){ std::cout << (a+b+c) << std::endl; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Input and Output
You are viewing a single comment's thread. Return to all comments →
define Low_Limit 1
define High_Lmit 1000
bool InRange(unsigned short int x) { if (Low_Limit <= x && x <= High_Lmit ) { return true; } else { return false; } }
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ unsigned short int a , b ,c ;
}