Thread: School assignments

  1. #1
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078

    School assignments

    From now on, everytime sombody asks for solutions about their school assignments I'll respond with an obfuscated code (IOCCC style), like this one:
    Code:
    /* ball.c */
    /* Compile with 'gcc -ansi -o ball ball.c -lm' */
    #include <stdio.h>
    #include <math.h>
    #include <unistd.h>
    #include <sys/ioctl.h>
     
                 main() {
             short a[4];ioctl
          (0,TIOCGWINSZ,&a);int
        b,c,d=*a,e=a[1];float f,g,
      h,i=d/2+d%2+1,j=d/5-1,k=0,l=e/
     2,m=d/4,n=.01*e,o=0,p=.1;while (
    printf("\x1b[H\x1B[?25l"),!usleep(
    79383)){for (b=c=0;h=2*(m-c)/i,f=-
    .3*(g=(l-b)/i)+.954*h,c<d;c+=(b=++
    b%e)==0)printf("\x1B[%dm ",g*g>1-h
    *h?c>d-j?b<d-c||d-c>e-b?40:100:b<j
    ||b>e-j?40:g*(g+.6)+.09+h*h<1?100:
     47:((int)(9-k+(.954*g+.3*h)/sqrt
      (1-f*f))+(int)(2+f*2))%2==0?107
        :101);k+=p,m+=o,o=m>d-2*j?
          -.04*d:o+.002*d;n=(l+=
             n)<i||l>e-i?p=-p
                 ,-n:n;}}

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    School assignments-culture-jpg

    Sorry, this isn't 4chan but I couldn't resist.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Hehehe... we're in luck you didn't decide to post a picture from /aco/ or /gif/ here!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assignments help
    By AFCKING in forum C Programming
    Replies: 6
    Last Post: 03-06-2013, 01:19 PM
  2. Programmmings Assignments in C
    By livin in forum C Programming
    Replies: 2
    Last Post: 05-22-2011, 11:39 PM
  3. Problems with 2 assignments
    By pauzza in forum C Programming
    Replies: 7
    Last Post: 11-23-2010, 03:59 PM
  4. Need help on one of my assignments
    By engstudent363 in forum C Programming
    Replies: 5
    Last Post: 02-13-2008, 03:24 PM
  5. Help on school assignments
    By J.Z. in forum C Programming
    Replies: 5
    Last Post: 10-17-2003, 02:40 PM

Tags for this Thread