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
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Thursday at 2:23 PM
Ad icon
Wechat qr verification
Pawan2005
Updated:
Thursday at 1:28 AM
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Wednesday at 5:34 PM
Pure VPN - Up to 27 Months
vgp
Updated:
Jun 5, 2026
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Jun 2, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
c++ help
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="jayampathi" data-source="post: 20815505" data-attributes="member: 470"><p>#include <iostream></p><p>using namespace std; </p><p>int compare ( int a, int b , int c, int d, int e, int f, int g, int h, int i, int j) </p><p>{ </p><p> if (a>=b) </p><p> {</p><p> if (a>=c)</p><p> {</p><p> return a;</p><p> }</p><p> else </p><p> {</p><p> return c;</p><p> }</p><p> }</p><p> else </p><p> {</p><p> if (b>=c)</p><p> {</p><p> return b;</p><p> }</p><p> else</p><p> {</p><p> return c;</p><p> }</p><p> }</p><p>} </p><p></p><p>int main()</p><p>{</p><p> int num1,num2,num3,num4,num5,num6,num7,num8,num9,num10;</p><p> int result;</p><p> cout<<"please enter three numbers and I will tell you the largest number you entered"<<endl;</p><p> cout<<endl;</p><p> cout<<"the first number? :"<<endl;</p><p> cin >>num1;</p><p> cout<<endl;</p><p> cout<<"the second number? :"<<endl; </p><p> cin >>num2;</p><p> cout<<endl;</p><p> cout<<"the thrid number? :"<<endl;</p><p> cin >>num3;</p><p> cout<<endl;</p><p></p><p>cout<<"the 4th number? :"<<endl;</p><p> cin >>num4;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 5th number? :"<<endl;</p><p> cin >>num5;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 6th number? :"<<endl;</p><p> cin >>num6;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 7th number? :"<<endl;</p><p> cin >>num7;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 8th number? :"<<endl;</p><p> cin >>num8;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 9th number? :"<<endl;</p><p> cin >>num9;</p><p> cout<<endl;</p><p> </p><p> cout<<"the 10th number? :"<<endl;</p><p> cin >>num10;</p><p> cout<<endl;</p><p> </p><p></p><p></p><p></p><p></p><p></p><p> result = compare(num1,num2,num3,num4,num5,num6,num7,num8,num9,num10);</p><p></p><p> cout<<"the largest number is : "<<result<<endl;</p><p> cout<<endl;</p><p> cout<<endl;</p><p> cout<<endl;</p><p>return 0;</p><p>}</p><p>//please enter three numbers and I will tell you the largest number you entered</p><p></p><p>//the first number? :</p><p>//65431</p><p></p><p>//the second number? :</p><p>//345143</p><p></p><p>//the thrid number? :</p><p>//54235</p><p></p><p>//the largest number is : 345143 </p><p></p><p></p><p>meka hari hadala denna danna kenek</p></blockquote><p></p>
[QUOTE="jayampathi, post: 20815505, member: 470"] #include <iostream> using namespace std; int compare ( int a, int b , int c, int d, int e, int f, int g, int h, int i, int j) { if (a>=b) { if (a>=c) { return a; } else { return c; } } else { if (b>=c) { return b; } else { return c; } } } int main() { int num1,num2,num3,num4,num5,num6,num7,num8,num9,num10; int result; cout<<"please enter three numbers and I will tell you the largest number you entered"<<endl; cout<<endl; cout<<"the first number? :"<<endl; cin >>num1; cout<<endl; cout<<"the second number? :"<<endl; cin >>num2; cout<<endl; cout<<"the thrid number? :"<<endl; cin >>num3; cout<<endl; cout<<"the 4th number? :"<<endl; cin >>num4; cout<<endl; cout<<"the 5th number? :"<<endl; cin >>num5; cout<<endl; cout<<"the 6th number? :"<<endl; cin >>num6; cout<<endl; cout<<"the 7th number? :"<<endl; cin >>num7; cout<<endl; cout<<"the 8th number? :"<<endl; cin >>num8; cout<<endl; cout<<"the 9th number? :"<<endl; cin >>num9; cout<<endl; cout<<"the 10th number? :"<<endl; cin >>num10; cout<<endl; result = compare(num1,num2,num3,num4,num5,num6,num7,num8,num9,num10); cout<<"the largest number is : "<<result<<endl; cout<<endl; cout<<endl; cout<<endl; return 0; } //please enter three numbers and I will tell you the largest number you entered //the first number? : //65431 //the second number? : //345143 //the thrid number? : //54235 //the largest number is : 345143 meka hari hadala denna danna kenek [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom