31.75542% - Total Geek
Type: Posts; User: Eigenvalue
31.75542% - Total Geek
You need to reset t to 5 after you exit out of the inner while loop. You can place it before or after you incriment (sp) i by .01.
<<I mean the US has a poor literacy record that could easily be rectified by spending a bit more on education and a bit less on tanks, planes, bombs et al.
I see your point and agree with you. ...
Hey Clyde, I'm not saying that it isn't alot of money, but it is estimated that the U.S. will budget 1.8 trillion dollars for human resources in the year 2008 alone. I am not trying to start a flame...
While the US may spend billions on defense, it accounts for only about 16% of total expenditures. The majority (39%) goes to pensions and income security.
The U.S. is not a democracy, it is a democratic republic.
You are a transparent mineral silicate crystallizing in monoclinic form that readily separate into very thin leaves? :confused: :)
I am an American mutt ... and proud of it!:)
I had that last semester. It was alot of fun using matricies (sp). Our professor forgot that it was an introduction course and ended up teaching us the entire book (there were only four of us that...
<<Do any you guys that actually understand all this math hype have trouble doing simple math problems in your head?>>
:) I have problems like that all the time, and I just finished my Differential...
Sentaku senshi,
Couldn't have said it any better.
Eigenvalue
[hysterical rant]
Glass 'em!! Glass 'em all!!! Especially Canada! They attacked us by sending over Tom Green!!! Arrgghh!!
[/end rant]
:D :D :D
Seriously ( if I can :p ) though, we had a...
Where is the while loop you are having problems with? I didn't see it in the code you posted.
Eigenvalue
I am obviously obsessed with while loops. Sorry about that!:rolleyes:
if you place max=number outside the do while loop, max will not change. See my previous post( I was too lazy to type in the do/while loop!:))
hope this helps
try this
int number;
int score;
int max;
scanf("%d",&number);
max=number;
do{ ...
}while(number>0);
:confused: so do you want to print out their score and the maximum they could get? Like 5/15?
Hi kmr6655,
try this instead
for (x=1; x <= value; x++){
printf("Enter the positive integer #%i: ", x);
scanf ("%i", &pos_int);
1. Understanding the mathmatics behind Einstein's theory of relativity.
2. Trying to type faster than Cshot and Driveway:p
3. Creating something out of nothing.
4. Touching your elbow with...
Me? A liar? Well I never!:( :p
Has anybody died in their dreams?
I have, twice. Was shot in the head and everything slowly went dark. Kinda boring.
I have had a dream where I was falling but I didn't wake up when I hit the ground. I bounced!!:D :D
Thank you for the replies.:D
The program I have coded is the classic tortoise vs. hare simulation, and the pause is being used to give the user the time to see the race as it is run. vVv, could...
Hi everyone. I am using a pause function in a homework program and was wondering what the portability limitations would be (i.e. can it be used on other OS). The compiler I am using is MSVC++...