CPP Weight Script
CPP
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(); }
|