Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
#import <Foundation/Foundation.h>
float cToF(float c){ return c*9/5 +32; }
float fToC(float f){ return (f-32)*5/9; }
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"25°C = %.1f°F", cToF(25));
NSLog(@"77°F = %.1f°C", fToC(77));
}
return 0;
}Coding works best on desktop or with an external keyboard.