Pradeep Kotipalli
/
tm
mm
Fork of gtgtgtgt by
Diff: main.cpp
- Revision:
- 3:0503ea7647f8
- Parent:
- 2:a4514f4721a1
--- a/main.cpp Sat Dec 20 10:09:08 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#include "mbed.h" -#include "string.h" - - -int main() -{ - int hours = 0x12; - int scnds = 0x23; - - void ( - - int h1=(hours/16)*10+hours%16; - char h[4]; - sprintf(h,"%d",h1); - int se1=(scnds/16)*10+scnds%16; - char se[4]; - sprintf(se,"%d",se1); - strcat(h,se); - - - - //char tmp[2] ; - //tmp[0] = (char)hours; - //tmp[1] = '\0'; - for(int i=0;i<20;i++){ - puts(h);} - //printf("wth");} - return 0; -}