Objective C Programming Tips

Sum of Digits of a Number in Objective-C

The following Objective-C program prints sum of digits of a number entered by user. This program will only compile in latest compilers as it uses ARC paradigm. The program uses scanf c function to read user input. // Print sum of digits of a user entered number #import <foundation foundation.h> int main(int argc, const char […]