This program prompts for F and G and computes the Total
of the numbers between F and G inclusive.
Examples: F is 5 G is 10: Total: 45
F is 6 G is 10: Total: 40
Would I change the Total + Total + N or the for loop??? and should I change the letters to the numbers assigned to them??
#include <iostream>
using namespace std;
int main(void)
{
int F, G, Total = 0;
cout << "Enter F and G: ";
cin >> F >> G;
for(int N = G; N <= F; N++)
{
Total = Total + N;
}