i want to add the values inside a,b,c and then want to print them on serial port.But the Serial.println command is printing the Decimal value of the addition( sum=a+b+c )that is 150 but i want output should be 6.Need Help Please Reply...Thanks
My Code is:-
[code][code]
int a,b,c,sum;
void setup()
{
Serial.begin(9600);
}
void loop()
{
String reportString = "1$123$456$$789";
int spacePosition0 = reportString.indexOf('1');
int spacePosition1 = reportString.indexOf('
@AWOL
i want Serial.Println(sum); to print 6 as the sum of a=1,b=2,c=3.But the command is printing 150 by adding the Decimal Values of a,b and c (49,50 and 51) respectively.So AWOL how can i get this value.......please help.