fork download
  1. #include <time.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void)
  6. {
  7. int x,y,i;
  8.  
  9. for(i=0;i<500;i++)
  10. {
  11. x=x_r(i);
  12. y=y_r(x);
  13.  
  14. printf("(%d,%d) ",x,y);
  15. //printf("%d(%d,%d) ",i,x,y);
  16.  
  17. if((i+1)%10==0)
  18. printf("\n");
  19. }
  20. return 0;
  21. }
  22.  
  23. int x_r(int i)
  24. {
  25. int x;
  26.  
  27. x =i;
  28.  
  29. return x;
  30. }
  31.  
  32. int y_r(int x)
  33. {
  34. int y;
  35.  
  36. y =500-x;
  37.  
  38. return y;
  39. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
(0,500) (1,499) (2,498) (3,497) (4,496) (5,495) (6,494) (7,493) (8,492) (9,491) 
(10,490) (11,489) (12,488) (13,487) (14,486) (15,485) (16,484) (17,483) (18,482) (19,481) 
(20,480) (21,479) (22,478) (23,477) (24,476) (25,475) (26,474) (27,473) (28,472) (29,471) 
(30,470) (31,469) (32,468) (33,467) (34,466) (35,465) (36,464) (37,463) (38,462) (39,461) 
(40,460) (41,459) (42,458) (43,457) (44,456) (45,455) (46,454) (47,453) (48,452) (49,451) 
(50,450) (51,449) (52,448) (53,447) (54,446) (55,445) (56,444) (57,443) (58,442) (59,441) 
(60,440) (61,439) (62,438) (63,437) (64,436) (65,435) (66,434) (67,433) (68,432) (69,431) 
(70,430) (71,429) (72,428) (73,427) (74,426) (75,425) (76,424) (77,423) (78,422) (79,421) 
(80,420) (81,419) (82,418) (83,417) (84,416) (85,415) (86,414) (87,413) (88,412) (89,411) 
(90,410) (91,409) (92,408) (93,407) (94,406) (95,405) (96,404) (97,403) (98,402) (99,401) 
(100,400) (101,399) (102,398) (103,397) (104,396) (105,395) (106,394) (107,393) (108,392) (109,391) 
(110,390) (111,389) (112,388) (113,387) (114,386) (115,385) (116,384) (117,383) (118,382) (119,381) 
(120,380) (121,379) (122,378) (123,377) (124,376) (125,375) (126,374) (127,373) (128,372) (129,371) 
(130,370) (131,369) (132,368) (133,367) (134,366) (135,365) (136,364) (137,363) (138,362) (139,361) 
(140,360) (141,359) (142,358) (143,357) (144,356) (145,355) (146,354) (147,353) (148,352) (149,351) 
(150,350) (151,349) (152,348) (153,347) (154,346) (155,345) (156,344) (157,343) (158,342) (159,341) 
(160,340) (161,339) (162,338) (163,337) (164,336) (165,335) (166,334) (167,333) (168,332) (169,331) 
(170,330) (171,329) (172,328) (173,327) (174,326) (175,325) (176,324) (177,323) (178,322) (179,321) 
(180,320) (181,319) (182,318) (183,317) (184,316) (185,315) (186,314) (187,313) (188,312) (189,311) 
(190,310) (191,309) (192,308) (193,307) (194,306) (195,305) (196,304) (197,303) (198,302) (199,301) 
(200,300) (201,299) (202,298) (203,297) (204,296) (205,295) (206,294) (207,293) (208,292) (209,291) 
(210,290) (211,289) (212,288) (213,287) (214,286) (215,285) (216,284) (217,283) (218,282) (219,281) 
(220,280) (221,279) (222,278) (223,277) (224,276) (225,275) (226,274) (227,273) (228,272) (229,271) 
(230,270) (231,269) (232,268) (233,267) (234,266) (235,265) (236,264) (237,263) (238,262) (239,261) 
(240,260) (241,259) (242,258) (243,257) (244,256) (245,255) (246,254) (247,253) (248,252) (249,251) 
(250,250) (251,249) (252,248) (253,247) (254,246) (255,245) (256,244) (257,243) (258,242) (259,241) 
(260,240) (261,239) (262,238) (263,237) (264,236) (265,235) (266,234) (267,233) (268,232) (269,231) 
(270,230) (271,229) (272,228) (273,227) (274,226) (275,225) (276,224) (277,223) (278,222) (279,221) 
(280,220) (281,219) (282,218) (283,217) (284,216) (285,215) (286,214) (287,213) (288,212) (289,211) 
(290,210) (291,209) (292,208) (293,207) (294,206) (295,205) (296,204) (297,203) (298,202) (299,201) 
(300,200) (301,199) (302,198) (303,197) (304,196) (305,195) (306,194) (307,193) (308,192) (309,191) 
(310,190) (311,189) (312,188) (313,187) (314,186) (315,185) (316,184) (317,183) (318,182) (319,181) 
(320,180) (321,179) (322,178) (323,177) (324,176) (325,175) (326,174) (327,173) (328,172) (329,171) 
(330,170) (331,169) (332,168) (333,167) (334,166) (335,165) (336,164) (337,163) (338,162) (339,161) 
(340,160) (341,159) (342,158) (343,157) (344,156) (345,155) (346,154) (347,153) (348,152) (349,151) 
(350,150) (351,149) (352,148) (353,147) (354,146) (355,145) (356,144) (357,143) (358,142) (359,141) 
(360,140) (361,139) (362,138) (363,137) (364,136) (365,135) (366,134) (367,133) (368,132) (369,131) 
(370,130) (371,129) (372,128) (373,127) (374,126) (375,125) (376,124) (377,123) (378,122) (379,121) 
(380,120) (381,119) (382,118) (383,117) (384,116) (385,115) (386,114) (387,113) (388,112) (389,111) 
(390,110) (391,109) (392,108) (393,107) (394,106) (395,105) (396,104) (397,103) (398,102) (399,101) 
(400,100) (401,99) (402,98) (403,97) (404,96) (405,95) (406,94) (407,93) (408,92) (409,91) 
(410,90) (411,89) (412,88) (413,87) (414,86) (415,85) (416,84) (417,83) (418,82) (419,81) 
(420,80) (421,79) (422,78) (423,77) (424,76) (425,75) (426,74) (427,73) (428,72) (429,71) 
(430,70) (431,69) (432,68) (433,67) (434,66) (435,65) (436,64) (437,63) (438,62) (439,61) 
(440,60) (441,59) (442,58) (443,57) (444,56) (445,55) (446,54) (447,53) (448,52) (449,51) 
(450,50) (451,49) (452,48) (453,47) (454,46) (455,45) (456,44) (457,43) (458,42) (459,41) 
(460,40) (461,39) (462,38) (463,37) (464,36) (465,35) (466,34) (467,33) (468,32) (469,31) 
(470,30) (471,29) (472,28) (473,27) (474,26) (475,25) (476,24) (477,23) (478,22) (479,21) 
(480,20) (481,19) (482,18) (483,17) (484,16) (485,15) (486,14) (487,13) (488,12) (489,11) 
(490,10) (491,9) (492,8) (493,7) (494,6) (495,5) (496,4) (497,3) (498,2) (499,1)