It looks like you're new here. If you want to get involved, click one of these buttons!
Please correct the above code.
will this compile? :
cout<<"Input your age";<br>
if (my_age > 20 ) ;
cout<<"Too high number";<br>
cout<<"I am <<my_age>> years old
cout<<"A year passes";<br>
cout<<"How old are you next year?";<br>
if (my_age > 21 ) ; /*increased by one/*
cout<<"Again, too high";<br>
cout<<"Thanks for your age";<br>
/*its now 21 in 'my_age's value cause been incremented/
scanf(%d &my_age );
printf(%d my_age );
puts("Now describe yourself
Where does the users text go?
Yeah, I know, I know, nothing is correct, by I read
tutorials and books and saying that is that, and you are confusing me. This is in books:
the if statement is the true of false or something,the statement is the cout or printf something, and you are saying that 'else' goes right after the expression, no I saw in the books that that is the layout, or is it only in C++ ? Give me beginner tips, and explain how I can fix the problem next time, instead of just telling me the problem, let me fix it.