Everything2
Near Matches
Ignore Exact
Full Text
Everything2

weetos

created by Physics Bonanza

(thing) by Physics Bonanza (10 mon) (print)   ?   (I like it!) 1 C! Thu Mar 24 2005 at 18:07:49

Everyone knows that Weetos are the choco-hoops of choice for today's distinguished gentleman. However, everyone also knows that old Joe McShmoe down the street can go to town in his Joemobile and get himself some Weetos too! It is blindingly clear that we need a way to differentiate between cool guys like you and bums like Joe.

I have such a way.*

In this very writeup, I present to you the codiest C code that will make you stand out from the rest when you are enjoying your morning dose of choco nutrients! In order to use this code effectively, you need to know the rules of the Game.

The Game

The Game is very simple: get some Weetos, and munch away. Once you are down to a countably small number of Weetos, the Game begins. First eat one Weeto. Then two at a time. Then three, and so on, until you have run out of Weetos. The aim of the game is to get a "Perfect!" as deemed by the program, which means that on your last spoonful, you will finish your bowl by eating exactly the number of Weetos that you are supposed to (e.g. if your last spoonful was 4, and there are 5 left, you get a "Perfect!"). Non-Perfect scores are punishable by death, or a re-match. The program will also tell you what the maximum number of Weetos on your spoon will be, and the number on your last spoonful.

Give me the Code. Also, shut up

Use it wisely!

#include <stdio.h>

int main ()
{
  int have, need;

  printf("Please enter the number of remaining Weetos and don't cry about it: \n");
  scanf("%d", &have);

  need = 0;
	
  while(have>0)
  {
    need++;                     /* Number needed */
    have = have - need;   /* Eat number of Weetos needed */
  }

  if(have >= 0)
  {
    printf("Need = %d\t Have = %d\n", need, have);

    if(need == have)
    {
      printf("Perfect! The largest, and last, spoonful will have %d Weetos.\n", need);
    }

    else if(need > have)
    {
      if(need==1)
      {
        printf("The largest spoonful will have %d Weeto, and the last spoonful will have %d Weetos. \n", need, have+need);
      }	
      else
      {
      printf("The largest spoonful will have %d Weetos, and the last spoonful will have %d Weetos. \n", need, have+need);
      }
    }
  }
	
  else
  {
    if(need<=2)
    {
      printf("The largest spoonful will have %d Weeto, and the last spoonful will have %d Weeto.\n", need-1, have+need);
    }		
    else
    {
      printf("The largest spoonful will have %d Weetos, and the last spoonful will have %d Weetos.\n", need-1, have+need);
    }
  }	
exit(0);
}

*Gauri taught me how to play.

printable version
chaos

Sugar Bear How to calculate the day of the week for a given date breakfast pizza Pig on every corner program
my roommate's girlfriend's hair in my cereal breakfast We do more after 2am than most people do all day. Condemned to wires and hammers, strike every chord that you feel
a tiny poem i dreamed cereal I woke up and thought it was Saturday The last bowl of Lucky Charms
Holy Shit! You must die to preserve life on Earth as we know it! May 26, 2008 Count Chocula Part of this balanced breakfast
Uncle Sam Cereal This program has performed an illegal operation and will be shut down Leggo my Eggo Diane Keaton
life cereal Frühstück Why strapping buttered toast to a cat's back will not produce infinite power It's OK to be a healthy geek
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Stephen Foster
My mother, a flowergirl
Born with the gift of laughter, and a sense that the world was mad
cultural anarchy
Prisoner's Dilemma
The Reformation
Galapagos Hawk
David Bohm
Benford's Law
The Second Noble Truth of Buddhism
Tell me a story about clouds
Tips for driving in the Middle East
Los Alamos National Laboratory
New Writeups
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
This affordable entertainment brought to you by The Everything Development Company