1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /* Write a program that will read a float type value from the keyboard and print the following output. ->Small Integer not less than the number. ->Given Number. ->Largest Integer not greater than the number. */ class ValueFormat{ public static void main(String args[]){ double i = 34.32; //given number System.out.println("Small Integer not greater than the number : "+Math.ceil(i)); System.out.println("Given Number : "+i); System.out.println("Largest Integer not greater than the number : "+Math.floor(i)); } } |
ADB commands for Android
Android
What are C Tokens?
C/C++
Least Recently Used Paging Algorithm
Advanced programs
First In First Out Page Replacement Algorithm
Simple programs
Java Program to find the IP address of the Machine
Basic Programs
Palindrome checking using function overloading
Advanced programs















Especia tus platos más sosos para conseguirlo con romero, tomillo, canela, vain...
...
Because of giving example I clearly understand difference between structure &...;
thanks. but i need merge sort program with explanation...... ple...
First of all I would like to say excellent blog! I had a quick question that I'...