I could give you 25 of the top of my head.. and if u want another 15 in spanish and french and german
Type: Posts; User: Mrzach3590
I could give you 25 of the top of my head.. and if u want another 15 in spanish and french and german
Salem, I love you. I understand it now, woot! I modified the code to
#include <iostream>
using namespace std;
int main()
{
int x, y;
int low, high;
std::cin >> x >> y;
if ( x < y ) {
low...
#include <iostream>
using namespace std;
int main()
{
std::cout<<"Input 2 numbers: ";
int x, y;
std::cin >> x >> y;
if ( x < y) {
x++;
Cant find anything, might be because im not totally sure what im looking for... hmm
Lol, ok I've removed it. Hmm time for a visit to FAQ and tutorial haha... again...
#include <iostream>
using namespace std;
int main()
{
std::cout<<"Input 2 numbers: ";
int x, y;
int upper, lower;
std::cin >> x >> y;
if ( x < y)
x++;
Alright ill give it a try
Compiles and runs, I want it to produce the the numbers inbetween the numbers i enter... I enter 10 1 it gives me 10 I enter 1 10 it gives me 2 9... I want the anwaser to be 2 9 or 9 2 not 10 1.......
I didnt say it was to advanced, just that i wasnt thinking about it lol. Altho I might as well go find out more about it.
Ok, theres the original messed up code, and heres the code that finally worked...
#include <iostream>
using namespace std;
int main(void)
{
int sum = 0, value;
while (std::cin >> value)...
Hmm that FAQ is somewhat advanced for me, sadly lol... However its a step in the right direction, thank you.
When i type in the numbers it jujst gives me teh smallest number i entered as the sum =P
As you can see im extremely new to programming, and debugging is or was rather far from my mind... ignore()...
Using latest Dev compiler, the window wont stay open and it wont add the numbers correctly.
Can't get this code here to work tried everything I can think of and looked at the FAQ. Should add up multiple variables.
#include <iostream>
int main(void)
{
int sum = 0, value;
while...
I did this
if (uname, pword == true);
worked fine =P
The semi colo after the parenthesis are uneeded as well
But, alas, im 16 and just started on this language as well...lol
Original question:
#include <iostream>
int main()
{
int x, y;
std::cout << "Enter 2 numbers: " << std::endl;
std::cin >> x >> y;
Oops im sorry didnt realize.
book im using makes it look somuch morecomplicated then that rofl... dang, thanks forhelp!
This is what I ended up with after an hour of trying to get it to tell me how many negatives i've put it, lol... its kinda funny. Help!
#include <iostream>
int main()
{
std::cout <<"Enter...
New question up top, im a hardcore noob to programming rofl.
Thanks twomers! I successfully wrote a while loop!
Could you help me write one lol, the book i got has it for a practice question but really didnt go over it, or atleast i dont think it did.
ok, anyone know how to write a program in for and while to print the numbers from 10 down to 0?
Hah ok it works thanks a ton I danced in my chair rofl. Now i can move past page 6!
It runs and it lets me enter the 2 #'s but when i hit enter compiler exits out and wont add