In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
public class JavaExcercise { public static void main(String[] args) { int i; System.out.println ("The first 5 natural numbers are:\n"); for (i=1;i<=5;i++) { System.out.println (i); } } }
01 August 2018 2067 Written By: Rohit
Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.
© 2018 Tech Study. All rights reserved |
Developed by Tech Study| Privacy Policy
| Sitemap
|