int main(int argc, const char * argv[])
{
@autoreleasepool {
int startAmount = 1;
NSString *currencyOne = @"EUR";
NSString *currencyTwo = @"USD";
NSString *post = [NSString stringWithFormat

"
http://www.google.com/ig/calculator?hl=en&q=%i%@=?%@", startAmount, currencyOne, currencyTwo];
NSURL *webURL = [[NSURL alloc] initWithString

ost];
NSData *data = [NSData alloc];
data = [NSData dataWithContentsOfURL:webURL];
if(data !=nil){
NSMutableString *response = [[NSMutableString alloc] initWithData:data encoding:NSISOLatin1StringEncoding];
[response deleteCharactersInRange: [ response rangeOfString

"{lhs: \"1 Euro\",rhs: \""]];
[response deleteCharactersInRange: [ response rangeOfString

" U.S. dollars\",error: \"\",icc: true}"]];
float convertedResult = [response floatValue];
NSLog(@"The value is: %f", convertedResult);
}else{
NSLog(@"Cannot convert currency!");
}
}
return 0;
}