import java.util.Scanner; public class Mohamed { public static void main(String[] args) { Scanner input = new Scanner(System.in); // Repetition control statament. // for loop. int c = 0; while (c < 5) { System.out.println(c); c++; } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter