fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. float panjang, lebar;
  6. cin >> panjang;
  7. cin >> lebar;
  8. if (panjang >= 98 && panjang <= 102 &&
  9. lebar >= 49 && lebar <= 51) {
  10. cout << "Produk OK";
  11. }
  12. else {
  13. cout << "Produk NG";
  14. }
  15. }
Success #stdin #stdout 0s 5312KB
stdin
40

stdout
Produk NG