Close
Close

while learning "using if and else ", i wrote this code but on running it ,it asks for ENTER INTEGER. Do note that the just earlier program was of in

   rajansh213

#include <iostream>
int main()
{    using namespace std;
    int age;
    cout<<"enter your age"<<endl;
    cin>> age;
    if (age >=65)
        cout<<" you are becoming old" <<endl;
    else
        cout << "you are not old"<<endl;
    return 0;        
}


Answers

  •   

    Running as expected – https://ideone.com/tIPzbx



  •   

    this worked correctly for me .

    what editor are you using ?check your compiler

     



Ask Yours
Post Yours
Write your answer