ObjectC,循环语句for,while,dowhile
ObjectC,循环语句for,while,dowhile 篇1
演示循环语句,for,while,do-while,和C系列的语言,语法基本一致1到10,求和
//// main.m// for-while//// Created by fansunion on 15/11/29.// Copyright (c) demo. All rights reserved.//#import
程序输出
-11-29 14:25:08.975 for-while[2983:192052] The sum is 55
2015-11-29 14:25:08.977 for-while[2983:192052] The sum2 is 55
2015-11-29 14:25:08.978 for-while[2983:192052] The sum3 is 55
Program ended with exit code: 0