Skip to content

Instantly share code, notes, and snippets.

@headHUB
Created August 26, 2017 02:39
Show Gist options
  • Save headHUB/b678979dc7adb96fe6ff9c34f3985459 to your computer and use it in GitHub Desktop.
Save headHUB/b678979dc7adb96fe6ff9c34f3985459 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <fstream>
#include <cassert>
#include <cstdlib>
#include <ctime>
#include <cctype>
#include <algorithm>
#include <locale.h>
#include <stdio.h>
#include <functional>
#include <sstream>
#include <cstdlib>
using namespace std;
/*James Head
* Day 2
* 8/25/2017
*/
int main() {
double val1 = 100;
double val2 = 80;
double val3 = 90;
double average = 0;
cout<<"Average of 100, 80 and 90: "<<endl;
average = (val1 + val2 + val3)/3;
cout<<average<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment