QUICK
WRITE A PROGRAM THAT PRINTS OUT AND COUNTS TO 10 IN THE TERMINAL OR CONSOLE
OR THIS BIRD IS GONNA STAB YOU
QUICK
WRITE A PROGRAM THAT PRINTS OUT AND COUNTS TO 10 IN THE TERMINAL OR CONSOLE
OR THIS BIRD IS GONNA STAB YOU
Other urls found in this thread:
literally just type it out is faster
print(1)
print(2)
print(3)
print(4)
print(5)
print(6)
print(7)
print(8)
print(9)
print(10)
for i in {1..10};do;echo $i;done
#include
main () { printf ("1 2 3 4 5 6 7 8 9 10");
}
print "1\n2\n3\n4\n5\n6\n7\n8\n9\n10"
Array(10).fill(0).forEach((_,i) => console.log(i + 1));
APL master race.
0+⍳10
Failed the second condition, fagets.
>prints out
>>>>and counts to
>10
tf are you doing retard?
printf '%s\n' {1..10}
10.times do |n|
puts n
end
for(i=1;i
Autist
for(i = 1; i
(map [1 10] print)
for i in range(1, 10):
print i
No need to write anything. Node.JS has a package for this.
I remember GML... good times.
Nice quads
suck my balls
declare variable i as integer(8) |
with i
add 1 to i |
with console 0 |
output "count: " append i |
end
repeat until i is 10 |
mapM (putStrLn . show) [1..10]
Is this SQL? No, it can't be...
>terminal or console
>mfw
seq 10
for (int i = 0; i < 100; i++) {
if (i % 3 && i % 5) {
printf("%d\n", i);
continue;
}
if (!(i % 3))
printf("Fizz");
if (!(i % 5))
printf("Buzz");
putchar('\n');
}
>getting butthurt because some of us have higher reading comprehension skills
Fuck off pajeet
the bird didn't stab me yet, fucker. obviously I did it correctly
OP's just lazier than you are, count your blessings.
We have the winner!
This is a cute thread. It appeals to people of all levels. Especially entry level kiddies. It's really inclusive, I like it. You guys also love traps. I find that Jow Forums is one of the most progressive boards out there. You even love Stallman's thoughts on sharing is caring.
:)
AHHHHH FUCK
UHHHHHHHHHH
[CODE]
#include
int main() {
for (int i = 0; i < 10; i++) {
printf("&i\n", i);
}
return 0;
}
[CODE]
BATCH FOR WINDOWS NIGGERS.
@echo off
color 0a
echo 01
echo 02
echo 03
echo 04
echo 05
echo 06
echo 07
echo 08
echo 09
echo 10
echo xd funi batch script
1..10
Nice fucking tags you humongous faggot.
fuck im an ape who can't use code tags jesus
forgive me Jow Forums
#include
int main() {
for (int i = 0; i < 10; i++) {
printf("&i\n", i);
}
return 0;
}
>failing this hard at tags
get dead
you are not forgiven and never will be
mapM_ print [1..10]
wait that's still broken. It'll print 0-9.
ok I think I got this now
#include
int main() {
for (int i = 1; i < 11; i++) {
printf("&i\n", i);
}
return 0;
}
holy fuck im smoothbrained
print(*range(1,11))
%i, not &i.
FOR I%=0 TO 10
s$=STR$(I%)+CHR$(10)+CHR$(13)
SYS "printf",s$ TO A%
NEXT
1 to: 10 do: [:n | Transcript show: n; cr]
[kode]with karlie[/kode]
for i in 1 to 10 echo i
here you go user, this is the best way i could think of
private static final void countAndPrint() {
Integer number = 0;
switch (number) {
case 0:
System.out.println("0");
break;
case 1:
System.out.println("1");
break;
case 2:
System.out.println("2");
break;
case 3:
System.out.println("3");
break;
case 4:
System.out.println("4");
break;
case 5:
System.out.println("5");
break;
case 6:
System.out.println("6");
break;
case 7:
System.out.println("7");
break;
case 8:
System.out.println("8");
break;
case 9:
System.out.println("9");
break;
case 10:
System.out.println("10");
break;
}
for(int i=0;i
while [ $(date +%S) != 00 ]; do sleep 1; done ; while [ $(date +%S) != 10 ]; do sleep 1 ; echo $(date +%S); done
Might not work on slow enough computers.
my man
BIRDMIN QUALITY DROPPING
System.Console.Write(@"OUT AND COUNTS TO 10 IN THE TERMINAL OR CONSOLE
OR THIS BIRD IS GONNA STAB YOU");
>COUNTS TO 10
Binary or decimal?
nice
APL makes me hard.
Optimized it a bit more
sleep $((60-$(date +%S))) && seq 10 | xargs -Iz sh -c 'sleep 1 && echo $(date +%S)'
#include
int main(int argc, char **argv)
{
std::cout
echo >: i.10
ye
one of em is garbage
is currant one
is beautifyl
alsmot java tier verbosity
echo {1..10}
-[----->+--.-[--->++.[-->+++++.--[--->++.++[-->+++.[--->++--.++[-->++++.-[--->++--.-----[->++-.--[--->++--.-----[->++.[-->++++++.----[->++-.+[-->+++++.----[->++.[-->+++++.---[->++-.+[-->++++.[-->++++.-.
main() { long long l[] = { 4050765991979987505, 3158329 }; puts(l); }
Be sure sizeof(long long) == 16 and you're machine is little endian :^)
>0
>0
>1
>2
>3
>4
>5
>6
>7
>8
>9
>10
>both of them
FTFY
what kind of bit level evil are you doing there?
>>>>>>>>>>>>>>>
#include
using namespace std;
int main()
{
for(int i = 1; i > 10; i++)
{
cout
Ah, yes, the good old count-to-10-and-also-maybe-print-the-numbers package
> i > 10
whats the problem user?
IntStream.range(0,10).forEach(n -> System.out.println(n));
lol, it's just ascii.
It's funny because it's true. There's literally a package for everything, and it's both super annoying and super entertaining.
const countBetween = require("count-between")
let c = countBetween(1, 10, 1);
console.log(c(0));
console.log(c(1)); //Repeat this a bunch more times
#include
int main()
{
std::cout
> int i = 1
> [code i > 10
Even if it was a
...because that's what I've been asked to do? Count from 1 to 10, right?
He said to 10, but not necessarily from 1.
-[----->+---.>++++++++.
fun main(args: Array) {
for (i in 1..10) println(i)
}
1.to(10).foreach(println)
for i in range range(1, 10):
print i
Python for the win lmao
>using namespace std;
should be range(1,11), assuming this is python
`seq 10`
perl -e 'print(1..10)'
>do my homework assignment that's so easy it can be done in 1 or 2 lines
If this is hard to you OP then you should probably give up now.
delete(this.thread);
Just passed intro to programming with an A+ I got this:
float i;
for (i == 0, while i
1:10
R
#include
int main(){
printf("out");
for(int i = 0; i
Is this bait or do I just not recognize the language?
Wait nevermind it's b8
>2018
>Using an OS with a terminal
Swift is comfy!
(1...10).forEach { print($0) }
for (var i = 1; i
This is the only good one because people can actually understand it. C btfo
based
opisafag = 0
while opisafag < 10:
opisafag = opisafag + 1
print (opisafag)
Wasn’t bait desu I just had to try to program it to understand what I was doing wrong.
for (int i = 1; i
...
-[----->+--.>++++++++++..