fork(1) download
  1. use std::io::stdin;
  2. use std::io::BufRead;
  3. use std::io::BufReader;
  4.  
  5. fn main() {
  6. let corePoint0 = 9347895345365895345324544;
  7. let corePoint1 = 9347895345382109389029852;
  8. let avgCoreTemp = (corePoint0 + corePoint1)/2;
  9. if (avgCoreTemp>100){
  10. println!("WARNING: Reactor overheat! Temp:{}", avgCoreTemp);
  11. }else{
  12. println!("Everything is OK!");
  13. }
  14. }
  15.  
Success #stdin #stdout 0s 5472KB
stdin
Standard input is empty
stdout
Everything is OK!