![]() |
How to have to variable looping at the same time with the same increment?
Here is my problem I can't figure out how to loop two variable at the same
while they increment at the same time with the same increment I can't explain myself I will just give an example: Code:
The increment is 50Code:
#include <stdio.h> |
Re: How to have to variable looping at the same time with the same increment?
I checked your code in linux machine.so I have changed few lines.
In your code there is no need to two loops.You can do that using a single loop. Code:
#include <stdio.h> |
Re: How to have to variable looping at the same time with the same increment?
do this:-
Code:
#include <stdio.h> |
Re: How to have to variable looping at the same time with the same increment?
Thanks techgeek.in but i have another question..:happy: if the user wanted to input numbers with decimal numbers how will i do that??
|
Re: How to have to variable looping at the same time with the same increment?
Code:
#include <stdio.h> |
Re: How to have to variable looping at the same time with the same increment?
u can try this:-
Code:
#include <stdio.h> |
Re: How to have to variable looping at the same time with the same increment?
Now I upgraded the program..:D thanks to all your help!! but i have a last question
how can I set the range or the stopper to T2 to 1000K because the table of the ideal gas is for only 300K to 1000K so beyond that range in not applicable.. Code:
//This program generates a table for the specific internal energy |
Re: How to have to variable looping at the same time with the same increment?
see this:-
Code:
//This program generates a table for the specific internal energy |
Re: How to have to variable looping at the same time with the same increment?
Quote:
Code:
.......................Code:
}while(QA>2||QA<1); |
Re: How to have to variable looping at the same time with the same increment?
I figured it out already..hehe the only thing that is needed to be change is this
Code:
T1=300-inc;Code:
//This program generates a table for the specific internal energy |
| All times are GMT +5.5. The time now is 19:13. |