tag5,
Good morning. You are welcome in this nice forum. Your program source code must be surrounded with bb code tag. Read this How to use bb code tags?
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
sorry i don't now how to use it please reply,
Look at the link in adatapost's post :)
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
Look at the link in adatapost's post???
BB code tags : Wrap up your source code with code tags. You see the # icon at toolbar with post editor.
Or Read this - How to use code tag?
int main()
{
int x,n, count=0;
n=n+1;
nxt: cout<<"x=..";
cin>>x;
if(x>60)
count=count+1;
if(n==10)
cout<<count;
else
goto nxt;
}
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Look at the link in adatapost's post???
Yes -- you see those blue letters? That a link, just take your mouse and click on it.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Look at the link in adatapost's post???
Do you know how to use a computer? (I hope so)
Do you know what 'internet' is? (I hope so)
If you can answer yes to both of these questions, then try to answer the following question:
Do you know what a link is? (On this forum links are marked in blue, and when you move your mouse pointer over it, it will be underlined)
Just click on it, and your browser (this is the program on your computer that you use to display webpages, with you this is probably called: 'Internet Explorer') will display a new web page.
Then you start reading this web page.>I solved a c++ solution but i don't understand the idea of the program,
so i need help to understand the steps and the use of this program.
So, you're saying you solved it, but you don't understand your own solution?
Strange :icon_rolleyes:
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
To the OP:
How do you think variable n will ever get value 10 ?
You never explicitly put a value in it.
n will never become ten, so you can rip this out of your code, and it will work in exactly the same way.
if(n==10)
cout<<count;
>Its really hard even for us to know its LOGIC.
The LOGIC is: there's no LOGIC :P
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243