Skip to content
Snippets Groups Projects
Commit 86edcf13 authored by Adrien Rougny's avatar Adrien Rougny
Browse files

+ progs procedure_simplest_*_input.cpp

parent 74c67ece
No related branches found
No related tags found
No related merge requests found
#include<iostream>
using namespace std;
void saisie(int a) {
int b;
cout<<"Tapez un entier ";
cin >> b;
a = a + b;
cout << a;
}
int main() {
int a = 5;
saisie(a);
return 0;
}
#include<iostream>
using namespace std;
void saisie(int &a){
int b;
cin >> b;
a = a + b;
}
int main() {
int a = 5;
saisie(a);
cout << a;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment