Skip to content

Instantly share code, notes, and snippets.

@Alexbay218
Last active June 2, 2016 15:08
Show Gist options
  • Save Alexbay218/0ddfd4f67cce99d89c1f1d63e786170b to your computer and use it in GitHub Desktop.
Save Alexbay218/0ddfd4f67cce99d89c1f1d63e786170b to your computer and use it in GitHub Desktop.
#include <iostream>
#include <math.h>
int main(){char i[99]
;std::cin.get(i,99)
;int n=std::atoi(i)
;--n;n--;--n;n--;--n;n--
;--n;n--;--n;n--;--n;n--
;--n;n--;--n;n--;--n;n--
;--n;n--;--n;n--;--n;n--
;--n;n--;--n;n--;--n;n--
;--n;n--;float c=0;
++c;c++;++c;c++;++c;
c=pow(c,-1);c=c+c+c+c+c
+c+c+c+c;std::cout<<n/c;}
/*Converts temp to temp (F to C)
+---------------+
| 100 C| |212 F |
| | | |
| | | |
| ||| |
| ||| |
| ||| |
| 0 C|||32 F |
| (___) |
+---------------+
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment