Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of c_and_asm by
Diff: mult_c.c
- Revision:
- 1:05f50fb4ac8f
- Child:
- 3:b81f1f75db93
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mult_c.c Tue Apr 26 01:49:56 2016 +0000 @@ -0,0 +1,20 @@ +#ifdef __cplusplus +extern "C" { +#endif + + int mult_c(int c, int d) { + /* + int result=0; + for (int i=0;i<d;i++){ + result+=c; + + } + return result; + + */ + return c*d; + } + +#ifdef __cplusplus +} +#endif