Minggu, Juni 22, 2014

Define Float Variable Value On C Programming Language

Example for define one float variable value on C programming language:

main()
{
  float num = 7.5;
  printf("Float variable value is defined: %f", num);
  getch();
}


Example for define two float variables value on C programming language:

main()
{
  float num1 = 7.5, num2 = 21.3;
  printf("Float1 variable value is defined: %f", num1);
  printf("\nFloat2 variable value is defined: %f", num2);
  getch();
}



0 komentar: