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
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
C Help need....
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="rosharavinda" data-source="post: 18560722" data-attributes="member: 68151"><p>Mata me program eka karaganna 'C' language eka danna kenek udaw karanwada... Please need you guys help badly... </p><p></p><p>Define 10 cities (colombo,kandy,jaffna,matara,Galle, etc) program should assign the code names</p><p>The cities & their co-ordinate are hard coded</p><p>Eg: colombo (2 9) Galle (5 6)</p><p> </p><p>Generate the 2 co-ordinate points (0,0, to 10,10) (user should input 2 co-ordinate)</p><p> </p><p>In 15 tries </p><p>If your point is not in map you ignore ,but you loose a try.</p><p>Calculate the total distance you travel in 15 tries </p><p> </p><p>Total distance= d1+d2+.. </p><p></p><p>sqrt((x1-x2)^2)+(y1-y2)^2))</p><p> </p><p>If </p><p>Total distance >= 150km -->you won</p><p>50 <=Total distance < 150km -->Okey</p><p>0 <= Total distance < 50 -->bad try</p><p></p><p>Please help me to get this done.... U can get the values any way u like</p><p>Ex: 5,6 or 5 6 for single cordinate</p></blockquote><p></p>
[QUOTE="rosharavinda, post: 18560722, member: 68151"] Mata me program eka karaganna 'C' language eka danna kenek udaw karanwada... Please need you guys help badly... Define 10 cities (colombo,kandy,jaffna,matara,Galle, etc) program should assign the code names The cities & their co-ordinate are hard coded Eg: colombo (2 9) Galle (5 6) Generate the 2 co-ordinate points (0,0, to 10,10) (user should input 2 co-ordinate) In 15 tries If your point is not in map you ignore ,but you loose a try. Calculate the total distance you travel in 15 tries Total distance= d1+d2+.. sqrt((x1-x2)^2)+(y1-y2)^2)) If Total distance >= 150km -->you won 50 <=Total distance < 150km -->Okey 0 <= Total distance < 50 -->bad try Please help me to get this done.... U can get the values any way u like Ex: 5,6 or 5 6 for single cordinate [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom