Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

cstructHotel

Language: Layout:
+ ] Compiler args - ] Show input
Compilation time: 0.23 sec, absolute running time: 0.24 sec, cpu time: 0.02 sec, memory peak: 5 Mb, absolute service time: 0,58 sec 
edit mode |  history  | discussion
Hotel	Address	Grade	Rooms	Charge
  GGG	 ghh1	 1	100	 100
  JJJ	 ftg5	 1	100	  80
  CCC	  hh7	 1	100	  70
  BBB	 fg48	 2	200	 120
  TTT	 df35	 3	300	 300
Enter the grade(1/2/3):
Hotel	Address	Grade	Rooms	Charge
  CCC	  hh7	 1	100	  70
  JJJ	 ftg5	 1	100	  80
  GGG	 ghh1	 1	100	 100
Enter desired room charge to get the list of hotels:
For room charge $100 per night or below,the hotels are:
Hotel	Address	Grade	Rooms	Charge
  CCC	  hh7	 1	100	  70
  JJJ	 ftg5	 1	100	  80
  GGG	 ghh1	 1	100	 100