in Education by
write an algorithm to accept an integer number and print the factors of it Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
import java.io.*; public class project11 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); System.out.print(“Enter: “); int n= Integer.parseInt(br.readLine()); for(int i=1;i<=n;i++) { if(n%i==0) { System.out.println(i); } } } }

Related questions

0 votes
    Write a C program to accept an integer number between 1 and 9. Write the value of the number in words. Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Write an algorithm to accept radius of a circle from user, and display area of the circle using the formula: area ... x radius x radius Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Write an algorithm and draw a flowchart to print prime numbers from 1 to 50 Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    Prielleila. 5. Wnte an Algorithm and draw a Flow Chart to accept the monthly salary of any employee then calculate ... the Net salary Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    write a program in java to accept a number and display the new number after removing all the zeros Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
    write a program to input number and print wether it is even or odd. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    write a program in Java to input a number and print if it is a special number or not. do this program using ... nested and while loop . Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    Simran write a code print: (“hello friends”)but when she executed there comes an error what was the error and why did it occur Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    write a program to read an integer and find its reverse. note: if user enter 1234 then the output should be 4321 in Python Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    write a Java program to accept a full name and display the initials along with the surname. URGENT! give the full program please Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    write a program to accept a word and display the new word after removing all the repeated alphabet Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    write a java program to accept alphabet and find out vowel or consonant Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
...