taks kamps

taks kamps

  • NA
  • 39
  • 6.1k

working on casting types and stuck with this code can anyone

Nov 26 2018 5:22 AM
{
double heightDouble = 1.825;
float heightFloat;
int heightInt;

heightFloat = heightDouble;
heightInt = (int)heightFloat;

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

Answers (2)