Computer Science, asked by hinaamin7108, 17 days ago

3 Identify valid and invalid numeric constants from the following. State the reason if invalid.
6; 7.8; 9; 500; class​

Answers

Answered by Anonymous
5

Answer:

Valid numeric constants:

  • 6,
  • 7.8,
  • 9,
  • 500.

Invalid numeric constants:

  • class

Explanation:

A numeric constant only consists of numerals(both positive and negative), an optional leading sign, and an optional decimal point.

Similar questions