PROGRAM-16


// Programe of type casting
#include
#include
void main()
{clrscr();
int x=6;
int y=4;
float a;
a=(float)x/y;
printf("the value of a is %f",a);
getch();
}

Algorithm

·                     Start
·                     Declare x=6, y=4 as integer
·                     Declare a as float
·                     a=(float)x/y
·                     Read(“the value of a”)
·                     Stop



#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

1 comments: