Waiting or Not Waiting

Description:

Raju maths teacher gave him a task of identifying the number name. If the number is greater than 0 then he should utter to the teacher as "I am waiting". If the number is less than 0 then he should utter the word as "I am not waiting". If the number is "0" the he should utter the word as "Sorry" Help him by completing his task. Test Case 1 Input (stdin) 15 Expected Output I am waiting Test Case 2 Input (stdin) -15 Expected Output I am not waiting

Program :

#include <iostream>

using namespace std;

 int main()

{

int number;

cin>>number;

 if(number>0)

cout<<"I am waiting"<<endl;

else if(number==0) cout<<"Sorry";

else cout<<"I am not waiting";

 return 0;

}