and then if it is less than 0 go back to where it asks for the age?
Type: Posts; User: Timbo8
and then if it is less than 0 go back to where it asks for the age?
so they are done in order? But also, how would i check to see if the entered age is below 0, and dispose of it if it is?
you would need a loop to do that, wouldnt you?
is that all id need to change?
I am currently coding a small program to comment on your age, and I am having problems with if else statements.
#include <iostream>
using namespace std;
int main()
{
so at the end do i put endl or \n, or both?
thanks for your help i have it working now. I dont need the ( and ) around the number1 * number2, but i needed << and <<, but i also need \n, which also puts the next text ona new line. So the final...
what is endl?
The thing is, (number1 * number2) still outputs the correct product of number1 and number2, but the thing is my compiler wont let me have the word "equals" in between <<number2<< and (number1 *...
Hey everyone, this is my first time learning a language (apart from HTML and CSS) and I am having a few problems. I have read the first few parts of the tutorial on this site, and I decided to create...