Write a Java Program that make use of a loop to output 10 plus signs.
Each plus sign must be separated by a space as shown in the example below: + + + + +
Source code
public class Main { public static void main(String[] args) { int n=10; for(int i=0;i<n;i++){ System.out.print("+ "); } } }
Output
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments