Sara
Test for 1>=10
This is the range which is input by the user I check from 1-10
klimi
So it never does anything
Mihail
The for is where you're messing it up
Mihail
Because like will the bigger or the smaller number be first?
Sara
Should be i--
I changed and it’s the same
Mihail
I changed and it’s the same
Yes because you enter the smaller first
Anonymous
I changed and it’s the same
Use a while loop and increase int I
Anonymous
Or a fixed for loop
Mihail
In that case just make it for(int i=*smaller number*; i<=*bigger number*; i++)
Mihail
sara. Do you know if the smaller or the bigger number comes first?
Sara
Yes i enter the the smaller first and it gives me this out put
Sara
Which many many pass
Mihail
Use that if the smaller number is first
Sara
Dose the * has meaning?
Sara
Sorry I didn’t see the two stars 🤦🏼‍♀️
Mihail
Put the smaller variable's name there
Mihail
Don't copy that directly
Sara
Thank you it’s run finally
Anonymous
for(int i=s; i<=e;i++)
Sara
Thanks all of you it’s run 👌🏻
Anonymous
#include <iostream> #include <iomanip> /* Using " using namespace std; " is for nerds */ #define EXIT 0 double DOLLAR; void CONVERT_TO_DOLLARS(double EURO) { DOLLAR = EURO/0.88; printf("€: %.3f -> %.3f $", EURO,DOLLAR); } int main() { double Euro,Dollar; Euro = 1; CONVERT_TO_DOLLARS(Euro); return EXIT; }
Anonymous
Can't believe it works lol
Anonymous
after 6 or plus months
Anonymous
if its spam i will remove
BinaryByter
what does iomanip do here?
Anonymous
what does iomanip do here?
i used std::setprecision
Anonymous
forgot to get it out
Anonymous
usign namespace std:: is shit why printf and include iostream?
printf because i didn't know any other way to limit the Floats to 4 decimal numbers
BinaryByter
well
BinaryByter
setprecision
Anonymous
setprecision
it will round my numbers
Anonymous
That's why i didn't use it
BinaryByter
std::fixed?
Anonymous
std::fixed?
I was just exited that i could do this in 2 mins lol
BinaryByter
lol
BinaryByter
well. gg
Anonymous
well. gg
I still need to learn hahaha
Anonymous
But without PC it's nasty
BinaryByter
indeed
Anonymous
And yeah i left " #include <iostream> " because before i used " cout "
Deep
   https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
Steve
alright
Steve
i don't know anything about c++
Steve
buh i want to learn
BinaryByter
I'll give you one advice (I REALLY mean that advice)
BinaryByter
Learn to use google
BinaryByter
In the long run, nobody will want to help you out for everything
Shivam
i don't know anything about c++
Check MIT study materials and learn from it.
BinaryByter
Shivam
i don't know anything about c++
Or you can take help of Sololearn too. It's easy to learn there.
Steve
thank you all for the advice
Steve
will make sure to stick to it
BinaryByter
very well!
BinaryByter
but in the end, make sure to learn programming because its fun
BinaryByter
and not because you can make money out of it
Shivam
The first important rule of programming is
Ибраги́м
forget python and go for c
U just mentioned go
Shivam
it's hard to be a good programmer if you have don't passion for it.
BinaryByter
indians in this room, listen up!
Shivam
Dont* have*
Shivam
Oops
BinaryByter
don't worry about typos
Shivam
;')
Ибраги́м
alright boss
He's not boss, he's a private. -10 star general
Shivam
Btw sololearn code playground is so different
Shivam
BinaryByter
TBH job interviews should only be hard for people who have nothing but good grades to show