All submissions
#include <iostream>
using namespace std;

class Sensor {
public:
   int s;
   Sensor(int init){
      s = init;
   }
   
   int read(){
      return s;
   }
   // your code here: implement int read() to return 100
};

int main() {
   Sensor s(100);
   cout << "Sensor reading: " << s.read();
   return 0;
}
Loading...

Input

Expected Output

Sensor reading: 100