Monday, February 20, 2006

How to indent code in blogger

You can use <pre> tags to indent code in blogger.

<pre>
your code with indent, just white space will do, no need to add   in html
</pre>
This is testing for the posthttp://code.box.sk/forum.php?page=last&did=multC%2FC%2B%2B&thread=16758


if (d > 0){
/* results are real numbers */
q = pow (d, 1./2);

x1 = (-b + q)/(2*a);
x2 = (-b - q)/(2*a);
printf ("X1=%f X2=%f\n", x1, x2);
}
else if (d == 0)
{
/* there’s only one result */
x1 = -b/(2*a);
printf ("X1=X2=%f\n", x1);
}
else
{
/* results are conjugated complex numbers */
q = pow(-d, 1./2);
x1r = -b/(2*a) ;
x2r = x1r;
x1i = q/(2*a);
x2i = -x1i;
printf ("X1 = (%f,%f)\n", x1r, x1i);
printf ("X2 = (%f,%f)\n", x2r, x2i);
}

Thursday, February 09, 2006

My First weBLOG

This is my first blog. I will be updating soon.

Posted on 9-2-2006, 4.09 pm IST from isquaretechnologies, vtk.

Get Indian financial year based on date

This function lets you get the start and end date of Indian financial year based on given date. This can also be modified for US financia...