Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eval_prog_seq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maison_eval
Eval_prog_seq
Commits
5f2b035e
Commit
5f2b035e
authored
2 years ago
by
jerome.maison
Browse files
Options
Downloads
Patches
Plain Diff
exo4
parent
cbc38deb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
exo4/Makefile
+4
-3
4 additions, 3 deletions
exo4/Makefile
exo4/exo4.c
+22
-0
22 additions, 0 deletions
exo4/exo4.c
with
26 additions
and
3 deletions
exo4/Makefile
+
4
−
3
View file @
5f2b035e
...
...
@@ -7,8 +7,9 @@ LDFLAGS:=-lm
ex4
:
ex4.c
$(
CC
)
$(
CFLAGS
)
-c
$@
$^
$(
LDFLAGS
)
exo4
:
exo4.c
$(
CC
)
$(
CFLAGS
)
-o
$@
$^
$(
LDFLAGS
)
clean
:
rm
-f
*
.o ex4
rm
-f
*
.o ex
o
4
This diff is collapsed.
Click to expand it.
exo4/exo4.c
+
22
−
0
View file @
5f2b035e
#include
<stdio.h>
// table de multiplication
int
table_multiplication
(
int
,
int
);
int
main
()
{
int
nbr
=
0
;
printf
(
"Entier:
\n
"
);
scanf
(
"%d"
,
&
nbr
);
printf
(
"table:
\n
"
);
table_multiplication
(
nbr
,
12
);
}
int
table_multiplication
(
int
n
,
int
k
){
int
r
=
n
*
k
;
if
(
!
k
){
return
0
;
}
printf
(
"%d * %d = %d
\n
"
,
n
,
k
,
r
);
return
table_multiplication
(
n
,
k
-
1
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment