Code Library
Home Submit Free Hosting Link To Us Contacts

CPP Weight Script

CPP Weight Script CPP CPP Weight Script Download (.zip)



#include <iostream>

using namespace std;

int main()
{
  int thisisanumber;

  cout<<"What's your weight? ";
  cin>> thisisanumber;
  cin.ignore();
  
  if (thisisanumber > 100) {
    cout <<"You have weight problems!\n";
  }
  else { cout<<"You must eat more!\n"; }
  cout<<"Your weight is "<< thisisanumber <<" :)\n";
  cin.get();
}




  • CPPWeight Script


Tatet