Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
FREE SEO Check & Google Maps Check for Sri Lankan Businesses | Web Design, Website Price Rs 14,900 |
LankaSolve
Updated:
Oct 20, 2026
ඕනම රටකට සෙට් වෙන CV එකක්
ErMurazor
Updated:
Oct 17, 2026
Hambantota
7 Acres Beachfront Land For Sell DownSouth , PerPerch Price 420 000
1024 Digital
Updated:
Oct 14, 2026
Baseus PI LITE INDOOR CAMERA
ErMurazor
Updated:
Oct 12, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Programing Danna Aiyala poddak Ennooo
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="dasdasd" data-source="post: 22453021" data-attributes="member: 556837"><p>Mn NVQ 5 ICT krnawa eke pass papers question ekak thibba</p><p><strong></strong></p><p><strong>Prepare a program which reads 10 integer numbers of an array and then display all prime numbers in the array.</strong></p><p></p><p> mn ekata mehema program ekak luwa meke waraddak thiyanawa rathu karala thiyana thana mokakda ee waradda ?</p><p></p><p><span style="color: DarkRed"></span></p><p><span style="color: DarkRed"></span>[CODE]</p><p>import java.util.Scanner;</p><p>public class s3{</p><p> public static void main(String args[]){</p><p></p><p> int[] a=new int[10];</p><p> Scanner sc=new Scanner(System.in);</p><p> int d=0;</p><p></p><p> </p><p> </p><p> for(int b=0;b<10;b++){</p><p> System.out.print("Enter 10 numbers =");</p><p> a[b]=sc.nextInt();</p><p> </p><p> }</p><p> for(int b=0;b<a.length;b++){</p><p> for(int c=2;c<a[b];c++){</p><p></p><p> if(a[b]%c==0){</p><p> d++;</p><p> break;</p><p> }</p><p> }</p><p>}</p><p> if(d==0){</p><p> System.out.println([COLOR=Red]a[b][/COLOR][B]+"prime");</p><p> }</p><p> </p><p> </p><p> } </p><p>}</p><p></p><p>[/B][/CODE]</p></blockquote><p></p>
[QUOTE="dasdasd, post: 22453021, member: 556837"] Mn NVQ 5 ICT krnawa eke pass papers question ekak thibba [B] Prepare a program which reads 10 integer numbers of an array and then display all prime numbers in the array.[/B] mn ekata mehema program ekak luwa meke waraddak thiyanawa rathu karala thiyana thana mokakda ee waradda ? [COLOR=DarkRed] [/COLOR][CODE] import java.util.Scanner; public class s3{ public static void main(String args[]){ int[] a=new int[10]; Scanner sc=new Scanner(System.in); int d=0; for(int b=0;b<10;b++){ System.out.print("Enter 10 numbers ="); a[b]=sc.nextInt(); } for(int b=0;b<a.length;b++){ for(int c=2;c<a[b];c++){ if(a[b]%c==0){ d++; break; } } } if(d==0){ System.out.println([COLOR=Red]a[b][/COLOR][B]+"prime"); } } } [/B][/CODE] [/QUOTE]
Insert quotes…
Verification
Dahaya deken beduwama keeyada?
Post reply
Top
Bottom