Skip to content

Instantly share code, notes, and snippets.

@Tasemu
Created March 9, 2015 03:27
Show Gist options
  • Save Tasemu/b4497971a359108c961b to your computer and use it in GitHub Desktop.
Save Tasemu/b4497971a359108c961b to your computer and use it in GitHub Desktop.
#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