Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- double ini = -10;
- double end = 10;
- double dif = 0.5;
- for (double i = ini; i <= end; i=i+dif){
- System.out.println(i + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement