How do I store the value after the orginal value has been calculated.
For example I minus 10 from 100, and I want 90 to be stored and in the next calculation another 10 wil be minued from 90 not the 100 which the original.
How do I store the value after the orginal value has been calculated.
For example I minus 10 from 100, and I want 90 to be stored and in the next calculation another 10 wil be minued from 90 not the 100 which the original.
in variables you can store these values
How do I store the value after the orginal value has been calculated.
For example I minus 10 from 100, and I want 90 to be stored and in the next calculation another 10 wil be minued from 90 not the 100 which the original.
program sablon;
uses crt;
var a,b,c,d,e,f,g:integer;
begin
clrscr;
a:=10;
b:=100;
c:=b-a; {90}
d:=c-a; {80}
e:=d-a; {70}
f:=e-a; {60}
g:=f-a; {50}
readln;
end.
{created by FlamingClaw 2009}
:D so simple,or not?
Ok got it thanks! :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.