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

/prog/ Challenge: Dubs and Trips

Name: Anonymous 2018-05-24 3:25

Basically a meme variation of FizzBuzz, but not exactly the same.

Write a program that outputs numbers between 1 and 1000 (inclusively). This is like a text board thread.

If it's dubs, instead of the number, print dubs. If trips, print trips. For trips, do NOT also output dubs. Only one or the other. If it's dubs or trips, do not include the number.

Example output:
987
dubs
989
990
991
992
993
994
995
996
997
998
trips


Notice that for 990, it doesn't output dubs, because it only counts for the last digits. And 999 only says trips, not dubs (even though it's also dubs, technically).

Name: Anonymous 2018-05-24 13:46

>>8
Compile with :gcc -include "stdio.h"
This extra option counts against your byte score my friend.

Name: Anonymous 2018-05-24 14:15

>>8,9
nice, but shouldn't you add i=1; so that people won't break your're are program by providing a fuckton of args?

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