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.
main.cpp
00001 #include "mbed.h" 00002 00003 /* atoi example */ 00004 #include <stdio.h> 00005 #include <stdlib.h> 00006 00007 int main () 00008 { 00009 int i; 00010 char szInput [256]; 00011 printf ("Enter a number: "); 00012 fgets ( szInput,5, stdin );//char * fgets ( char * str, int num, FILE * stream ); 00013 i = atoi (szInput); 00014 printf ("The value entered is %d. The double is %d.\n",i,i*2); 00015 return 0; 00016 }
Generated on Fri Jul 15 2022 23:53:02 by
1.7.2