Saturday, March 19, 2011

Assembler and Complier

The assembler of a computer system is a system software,supplied by the computer manufacturer which translates an assembly language program in to an equivalent machine language program of the computer.

A high level language program must be converted in to its equivalent machine language program before it can be executed on the computer.This translation is done with the help of a translation program,which is known as a compiler.

include <studio.h>
   main ( )
{
   int number;
   print f ("Enter an integer number/n");
   scan f ("d%", & number);
   if (number <100);
   print f ("your number is smaller than 100/n/n");
   else
   print f ("your number contains more than two light/n");
}


include <studio.h>
define PI 3.1416

   main ( )
{
   intr;
   float area;
   print f ("Enter the radius and hight of circle = ");
   scan f ("%d", & r );
   area = PI * r * r ;
   print f ("Area of cylinder = % .2 f ",area);
}

1 comment: