public class p { public static void main (String args []) { int i , a=0,j,b=0; for (j=2;j<=100;j++) { for(i=1;i<=j;i++) { if(j%i==0) b=b+1; } if(b<=2) a=a+j; } System.out.print(a); } } program to find the sum of prime num , please correct my mistake in this |
|
asked by Hareesh Ramakrishnan (hareesh0922) 8 years ago | |
2 | |
which will b evaluated first..++ or () ?? in the 2015 paper, the ++ was valuated first although () has a higher precedence..can anyone explain this? |
|
asked by Ishanuj Hazarika (ishanuj99) 8 years ago | |
2 |
666 3 Triangle. |
|
asked by Deleted Account (hadiq_pv) 8 years ago | |
1 | |
Happy Easter! |
|
asked by Won't Tell :P (some1) 8 years ago | |
1 |
99999 7777 555 33 1 How to print the pattern |
|
asked by Anu krishna (anukrishna) 8 years ago | |
2 |
Guys do ya'll have any notes for definitions nd stuff ?? To prepare for section a |
|
asked by Hrithesh Ramakrishnan (hrithesh23) 8 years ago | |
1 | |
precedence of operators in java |
|
asked by Somnath Biswal (somnathbiswal) 8 years ago | |
1 |
Attention friends! You can find the best programs in: http://www.codenirvana.net/search/label/Java There are many doubts asked by the people which are explained by the admin within half-a-day. Try it. All The Best! |
|
asked by Siru Thondan (vasudevakrishna) 8 years ago | |
2 |
Library classes is so tough can we use buffered reader instead of scanner can any1 tell how many programs from library will come if there are 2 questions then plz tell how to learn |
|
asked by Arun Murugan (arunmurugan) 8 years ago | |
1 |
Question in comments box ..👇 |
|
asked by Vartika S (vartika6) 8 years ago | |
2 |
Page 233 |
ICSE chat