|
Scaevolus
|
|
codepad
|
|
|
Scaevolus
|
Saved pastes by Scaevolus:
x=0;exec"x+=1;print'Fizz'*(x%3<1)+'Buzz'*(x%5<1)or x;"*100
|
| view (1 line, 100 lines of output) |
import collections
from operator import itemgetter as ind
data = ((1, 'Size', 'Small'),
(2, 'Size', 'Large'),
|
| view (33 lines, 18 lines of output) |
#include <stdio.h>
void main() {
int i; char a[]="Hate";
for (i=0;i<3;i++){a[i]=(a[i]>>1+1)*.92+92;} a[1]-=3; printf("%s\n", a);}
|
| view (4 lines, 1 line of output) |
print '\n'.join((((str(i),"Fizz")[i%3<1],"Buzz")[i%5<1],"FizzBuzz")[i%15<1] for i in xrange(1,101))
|
| view (1 line, 101 lines of output) |
print '\n'.join([str(i),"Fizz","Buzz","FizzBuzz"][-min([0,i%3-1,2*(i%5-1),3*(i%15-1)])] for i in xrange(1,101))
|
| view (1 line, 101 lines of output) |