From 9fe033ea88c2f705ec18c232873d056e0c229d72 Mon Sep 17 00:00:00 2001 From: Gaspard Coulet Date: Wed, 28 Apr 2021 23:05:53 +0200 Subject: Initial commit --- sem_3/Programm/TP1/test.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sem_3/Programm/TP1/test.cpp (limited to 'sem_3/Programm/TP1/test.cpp') diff --git a/sem_3/Programm/TP1/test.cpp b/sem_3/Programm/TP1/test.cpp new file mode 100644 index 0000000..91757d7 --- /dev/null +++ b/sem_3/Programm/TP1/test.cpp @@ -0,0 +1,10 @@ +#include + +int Puissance ( int x, int n) {return n==0 ? 1 : x*Puissance(x,n-1);} + +int main () { +int a,b; +std::cin >> a >> b; +std::cout << Puissance( a,b) << std::endl; +return 0; +} -- cgit v1.2.3