Created
August 26, 2017 02:39
-
-
Save headHUB/b678979dc7adb96fe6ff9c34f3985459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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