Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // main.m
- // Multiplication Table
- //
- // Created by Steve on 11/6/12.
- // Copyright (c) 2012 Personal. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- int main(int argc, const char * argv[])
- {
- int x = 0;
- int y = 0;
- // Produce each row of the table.
- while (y <= 12) {
- x = 0;
- // Produce each cell/column in each row.
- while (x <= 12) {
- printf("%d ", x*y);
- x++;
- }
- printf("\n");
- y++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement