How would i add two variables together? Also, how would i subtract two variables? I tried multiple times and can't get it right. Someone show me a quick procedure on it. Thanks!
How would i add two variables together? Also, how would i subtract two variables? I tried multiple times and can't get it right. Someone show me a quick procedure on it. Thanks!
I'm on my iPod but its simple really..
SCAR Code:var
A, b, c : integer;
begin
A:= 2;
B := 4;
C := a + b;
Writeln(inttostr(c));
//or
A := (a + b);
//not sure if that one would work, as i'm a bit rusty.
End.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"

Thanks guys! Trying to make a SCAR calculator.
There are currently 1 users browsing this thread. (0 members and 1 guests)