QB / QB64 Discussion Forum      Other Subforums, Links and Downloads

 Return to Index  

oh and in C

June 8 2010 at 11:58 PM
neuro  (no login)

Response to i wrote 1 in java


I almost forgot. Here's one i wrote in C:

int main(){float x,y=2,a,b,c,d,i;for(;y>-2;y-=.1){for(x=-2;x<2;x+=.05){a=x;b=y;c=a*a;d=b*b;for(i=94;i&&c+d<4;i--){b=2*a*b+y;a=c-d+x;c=a*a;d=b*b;}putchar((int)i+32);}puts("");}}

 Respond to this message   

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement