Computer Science, asked by srivastavasuyaoyskop, 1 year ago

Java program....using fall through....

Attachments:

Answers

Answered by ishita210
2
public class fall
{
public void main (int n)
{
int i,c=0,t=n;
for (i=1;i<=n;i++)
if(n%i==0)
{
c++;
}
if (c==2)
sopln ( t+"is not prime");
else
sopln(t+"is prime");
}}


srivastavasuyaoyskop: Ishita this one is done in the copy....they both are same...
ishita210: no its not there
srivastavasuyaoyskop: its there
ishita210: but I have not done
srivastavasuyaoyskop: why we have taken t?
hunterculberson: ow do yu get branliest asnswerh
Shrieya: Use fall through
Similar questions