Write an application that counts by five from 5 through 500 inclusive, and that starts a new line after every multiple of 50 (50
, 100, 150, and so on). Save the file as Count By Fives.java.
1 answer:
Answer:
//package CountByFives.java;
import java.util.*;
import java.io.*;
class Main{
public static void main(String[] args)
{
System.out.println("Enter the maiximum number of numbers");
Scanner sq1=new Scanner(System.in);
int num =sq1.nextInt();
int i=0,n=0,a=10;
while(i <=num)
{
System.out.print(i);
i+=5;
if(n==a)
{
System.out.println('\n');
n=0;
}
n=n+1;
}
}
}
Explanation:
Please check the answer section.
You might be interested in
Questionnaire
Company reports
Observation
Social media
Books
Focus groups
Answer:
Explanation:
Well I am sorry I don't know the answer anyway.
The answer would be B because ".edu" stands for education and it shows there was a source for the information
Answer:
Social
Explanation:
Social networking services make it easy for friends and family to share updates and special events with each other.
Have a nice day!