Ok that worked. Thank you so much! I would have spent all weekend pulling my hair out over this!
Type: Posts; User: C++Noob316
Ok that worked. Thank you so much! I would have spent all weekend pulling my hair out over this!
Ok. Here's where I am at now. I've been struggling with this for 2 days now. Can somebody please tell me what I'm doing wrong?
#include <iostream>
#include <iomanip>
using namespace std;
I am trying to create the code for a program using a for loop that will add the elements of an array and display "sum = (sum of the array)". I think I am pretty close but I am getting 1 error. Can...
Elkvis- I appreciate it but Googling it is what led me this forum in the first place
Oh ok. So it would be: sum += x ; Where x is just the name of the array?
So for multiple variables, say x, y, z, it would be like this?: x+=y+=z;
I'm kinda stuck at the starting point (I'm just learning this stuff). I know the basic code structure but I am struggling with the body of it. The basic structure of the for loop does help. For...
I need to add the elements of an array together using a for loop and then print the result. I know it is a simple code but I am struggling with it. Can anyone offer any advice on this?