Skip to content

Instantly share code, notes, and snippets.

@luiseduardogfranca
Last active January 30, 2018 13:35
Show Gist options
  • Save luiseduardogfranca/90727cd5b19ab7e665c49fd16d55c550 to your computer and use it in GitHub Desktop.
Save luiseduardogfranca/90727cd5b19ab7e665c49fd16d55c550 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
int value1, value2;
scanf("%d %d", &value1, &value2);
printf("Sum: %d\n", value1 + value2);
}
#include <iostream>
using namespace std;
int main(){
int value1, value2;
cout << "Enter with two integers values: ";
cin >> value1 >> value2;
cout << "Sum: " << value1 + value2 << "\n" ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment