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
Revision 3:b81f1f75db93, committed 2016-04-26
- Comitter:
- yangyulounk
- Date:
- Tue Apr 26 01:52:57 2016 +0000
- Parent:
- 2:9d258b4b0d88
- Commit message:
- final version
Changed in this revision
mult_c.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/mult_c.c Tue Apr 26 01:52:16 2016 +0000 +++ b/mult_c.c Tue Apr 26 01:52:57 2016 +0000 @@ -3,16 +3,7 @@ #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; + return c*d; } #ifdef __cplusplus