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
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Jul 18, 2026
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 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
Awruddata maasa keeyada?
Post reply
Top
Bottom