Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyClass {
- public static void main(String args[]) {
- for(float x = 1; x<10; x+=0.5){
- double y = 2*x + 5;
- if(y > 0 && y < 10.1){
- System.out.println(y);
- }
- }
- }
- }
RAW Paste Data