Created
March 9, 2015 03:27
-
-
Save Tasemu/b4497971a359108c961b to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
using namespace std; | |
void doubleNumbers (int x) { | |
cout << x * 2 << endl; | |
} | |
void doubleNumbers (double x) { | |
cout << x * 2 << endl; | |
} | |
void main () { | |
int one = 5; | |
double two = 5.00; | |
doubleNumbers(one); | |
doubleNumbers(two); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment