Printing variables to serial LCD

Hi,you might try this code:

[code]
#include <SerialLCD.h>
#include <SoftwareSerial.h> //this is a must

// initialize the library
SerialLCD slcd(11,12);//this is a must, assign soft serial pins
float c=0;

void setup()
{
slcd.begin();
}

void loop() {
unsigned long c;
for(c=0;c<6;c++)
{
slcd.setCursor(0, 0);
slcd.print(c,DEC);
delay(500);
}
}[/code]