Computer Science, asked by pratibha1162, 17 hours ago

Write a java program to accept a fractional number​

Answers

Answered by matabuddin673
0

The nextFloat() method, which is used to read Fractional Numbers, are used in our example. The Input is stored in the variable Input1 and printed in console using println() function which is the part of System. out package. Format Specifier "%.

Similar questions