Hi to all new here and new to C++ just making a temperature program that works by entering the temp and such ANY help is appreciated how would i go about making the background color change and the text any other suggestions or help is appreciated im a total newbie at this.
Code:#include<iostream.h> //Allows Cin and Cout to be used int main() //Allows starting of program { int temp; cout <<"Please input the temperature\n\n:"; cin >>temp; //User input if (temp>90) { cout <<"Spanish Weather : Wear shorts!\n"; //Prompt output based on user input } else if (temp>70) { cout <<"Ideal weather : Short sleaves are fine\n"; } else if (temp>50) { cout <<"A little chilly : Wear a light jacket\n"; } else if (temp>32) { cout <<"English weater : Wear a heavy coat\n"; } else { cout <<"Stay inside\n"; } return 0; //End the program }



LinkBack URL
About LinkBacks


