// 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
c language code snippets for beginners
ReplyDeletec program example Area of circle