2
Answers

working on casting types and stuck with this code can anyone

Photo of taks kamps

taks kamps

6y
556
1
{
double heightDouble = 1.825;
float heightFloat;
int heightInt;

heightFloat = heightDouble;
heightInt = (int)heightFloat;

Console.Write("heightInt is " + heightInt + " and heightFloat is " + heightFloat);
}

Answers (2)