Home
Forums
New posts
Search forums
Online Courses
2022 Rankings
2022 MFE Programs Rankings Methodology
Reviews
Latest reviews
Search resources
Tracker
What's new
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Please join us via Zoom to learn how the Options course is helpful to graduate studies and interviewing for quant finance internships and full-time roles.
May 16th, 2022 - Information Session - Intuition-Based Options Primer for Financial Engineering Certificate
Home
Forums
Quant discussion
Computing
Practical way to quickly develop C++ skills
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
.
Reply to thread
Message
<blockquote data-quote="nickaelwen" data-source="post: 87049" data-attributes="member: 2454"><p>Thanks for quick reply guys. I can feel passion from all of you.</p><p>Just solved my problem1 from euler project.</p><p> </p><p>My code looks ugly, but it did the work, I used type conversion to determine integer, I think this is what this project can brought me, you learn different ways to solve problems, this really do master a specific knowledge.</p><p> </p><p>[CODE]#include <iostream></p><p>using namespace std;</p><p> </p><p>void main()</p><p>{</p><p> double a;</p><p> int b=0;</p><p> int c=0;</p><p> int x=0;</p><p> for (a=1;a<1000;a++)</p><p> {</p><p> b=a/3;</p><p> c=a/5;</p><p> if (a/3==b || a/5==c)</p><p> {</p><p> x=x+a;</p><p> }</p><p> }</p><p> cout<<x<<endl;</p><p> system("pause");</p><p>}[/CODE]</p></blockquote><p></p>
[QUOTE="nickaelwen, post: 87049, member: 2454"] Thanks for quick reply guys. I can feel passion from all of you. Just solved my problem1 from euler project. My code looks ugly, but it did the work, I used type conversion to determine integer, I think this is what this project can brought me, you learn different ways to solve problems, this really do master a specific knowledge. [CODE]#include <iostream> using namespace std; void main() { double a; int b=0; int c=0; int x=0; for (a=1;a<1000;a++) { b=a/3; c=a/5; if (a/3==b || a/5==c) { x=x+a; } } cout<<x<<endl; system("pause"); }[/CODE] [/QUOTE]
Verification
Post reply
Home
Forums
Quant discussion
Computing
Practical way to quickly develop C++ skills
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top