Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A little help would be nice...

Name: Anonymous 2010-05-01 5:17

Hello /prog/rammers.

Can someone help me with a C dilemma I currently have?

We have to make a program that calculates how many ones, fives and tens you need given a whole number amount.

Hints, anyone?

Name: Anonymous 2010-05-01 8:09

>>11

#include<stdio.h>

int main(int argc, char *argv[])
{
   /* dear */
   auto long int s,i,r; /* please */
   auto long int* g = null;
   auto long int t = (i-(r=i%10))/10;
   auto long int f = (r-(s=r%5))/5;
   auto long int o = s;
   printf("| %s %l | %s %l | %s %l |\n","tens:",t,"fives:",f,"ones:",o);
   return 0;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List