Sunday, 15 July 2012
Farenheight to Celcius Conversion
05:29
1 comment
#include <stdio.h>
main()
{
int celcius;
printf("Farenheight Celcius\n------------------------\n");
for (celcius = 0; celcius <= 300; celcius = celcius + 20)
printf("%3d = %3d\n",celcius,((celcius-32)*5)/9);
}
Create 2x2 Table
04:33
14 comments
#include <stdio.h>
#include <conio.h>
main()
{
int a,b;
a = 1;
b = 2;
for (a; a <= 10; a++)
{
printf("%d * %2d = %2d\n",b,a,(a*b));
}
getch();
}
Subscribe to:
Posts (Atom)