Computer Science, asked by rhine, 1 year ago

WRITE A JAVA PROGRAM TO ACCEPT A NO. AND FIND THE SUM OF THE FACTORS WHICH ARE PRIME.

Answers

Answered by Tanvir1591
0
A very naive solution has been attached with:


Attachments:
Answered by sameer7815
1

Explanation:

import java.io.*;

class acceptprime

{

public static void main(String args[])throws IOException

{

DataInputStream ins = new......

................write till integer . Parse int

...

............

to accept and find other by loop

Similar questions