this post was submitted on 17 Apr 2025
0 points (NaN% liked)

Ask Lemmy

34605 readers
1814 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

Ok, Lemmy, let's play a game!

Post how many languages in which you can count to ten, including your native language. If you like, provide which languages. I'm going to make a guess; after you've replied, come back and open the spoiler. If I'm right: upvote; if I'm wrong: downvote!

My guess, and my answer...My guess is that it's more than the number of languages you speak, read, and/or write.

Do you feel cheated because I didn't pick a number? Vote how you want to, or don't vote! I'm just interested in the count.

I can count to ten in five languages, but I only speak two. I can read a third, and I once was able to converse in a fourth, but have long since lost that skill. I know only some pick-up/borrow words from the 5th, including counting to 10.

  1. My native language is English
  2. I lived in Germany for a couple of years; because I never took classes, I can't write in German, but I spoke fluently by the time I left.
  3. I studied French in college for three years; I can read French, but I've yet to meet a French person who can understand what I'm trying to say, and I have a hard time comprehending it.
  4. I taught myself Esperanto a couple of decades ago, and used to hang out in Esperanto chat rooms. I haven't kept up.
  5. I can count to ten in Japanese because I took Aikido classes for a decade or so, and my instructor counted out loud in Japanese, and the various movements are numbered.

I can almost count to ten in Spanish, because I grew up in mid-California and there was a lot of Spanish thrown around. But French interferes, and I start in Spanish and find myself switching to French in the middle, so I'm not sure I could really do it.

Bonus question: do you ever do your counting in a non-native language, just to make it more interesting?

all 12 comments
sorted by: hot top controversial new old
[–] Tuuktuuk@sopuli.xyz 2 points 1 week ago* (last edited 1 week ago)

Finnish, Swedish, Estonian, Latvian, Lithuanian, Ukrainian, German, Dutch, French, Spanish, Russian, English. Plus, Polish and Norwegian would go mostly right.

So, apparently 12.

However, I can say "I am am apple" in 30 languages. Much more useful.

[–] Nemo@slrpnk.net 1 points 5 months ago

Replying opened the spoiler for me, but:

  1. English (native)
  2. Spanish (school)
  3. Esperanto (self-taught)
  4. Latin (university)

I can also count to five in German, and I used to know 1-10 in Swahili, but now only remember that "moja means one"

[–] lukstru@lemmy.world 1 points 5 months ago (1 children)

1. Python

for i in range(11):
    print(i)

2. R

for (i in 0:10) {
  print(i)
}

3. C/C++

#include <iostream>

int main() {
  for (int i = 0; i <= 10; ++i) {
    std::cout << i << std::endl;
  }
  return 0;
}

4. Java

public class CountToTen {
  public static void main(String[] args) {
    for (int i = 0; i <= 10; i++) {
      System.out.println(i);
    }
  }
}

5. Lua

for i = 0, 10 do
  print(i)
end

6. Bash (Shell Script)

for i in $(seq 0 10); do
  echo $i
done

7. Batch (Windows Command Script)

@echo off
for /l %%i in (0,1,10) do (
  echo %%i
)

8. Go

package main

import "fmt"

func main() {
  for i := 0; i <= 10; i++ {
    fmt.Println(i)
  }
}

9. Rust

fn main() {
  for i in 0..=10 {  // 0..=10 includes 10
    println!("{}", i);
  }
}

10. Zig

const std = @import("std");

pub fn main() !void {
    var i: i32 = 0;
    while (i <= 10) {
        std.debug.print("{}\n", .{i});
        i += 1;
    }
}

11. Scala

for (i <- 0 to 10) {
  println(i)
}

12. Fortran

program count_to_ten
  implicit none
  integer :: i

  do i = 0, 10
    print *, i
  end do

end program count_to_ten

13. Haskell

main :: IO ()
main = mapM_ print [0..10]

14. Julia

for i in 0:10
    println(i)
end
[–] Corngood@lemmy.ml 0 points 5 months ago (2 children)

If you didn't cheat that's actually pretty impressive.

[–] lukstru@lemmy.world 1 points 5 months ago* (last edited 5 months ago)

Yes I cheated. To be fair, I used each of those languages at one point and knew how to do it but was to lazy to look it up again.

Edit: except Fortran

[–] sp3ctr4l@lemmy.dbzer0.com 0 points 5 months ago (1 children)

It is astonishingly easy to get basically any LLM to output a simple iteration from one to ten function in all of those languages, and more.

Here's Assembly:

    newline db 0xA  ; Newline character

section .bss
    number resb 1  ; Reserve a byte for the number

section .text
    global _start

_start:
    mov ecx, 1  ; Start with 1
    mov edx, 10 ; End with 10

loop_start:
    cmp ecx, edx  ; Compare ecx with edx
    jg loop_end   ; If ecx > edx, jump to loop_end

    ; Convert number to ASCII
    add ecx, '0'  ; Convert number to ASCII
    mov [number], ecx  ; Store the ASCII value in number

    ; Print the number
    mov eax, 4        ; sys_write system call
    mov ebx, 1        ; File descriptor 1 is stdout
    mov ecx, number   ; Pointer to the number
    mov edx, 1        ; Number of bytes to write
    int 0x80          ; Call kernel

    ; Print newline
    mov eax, 4        ; sys_write system call
    mov ebx, 1        ; File descriptor 1 is stdout
    mov ecx, newline  ; Pointer to the newline character
    mov edx, 1        ; Number of bytes to write
    int 0x80          ; Call kernel

    sub ecx, '0'  ; Convert ASCII back to number
    inc ecx        ; Increment the number
    jmp loop_start  ; Jump back to the start of the loop

loop_end:
    ; Exit the program
    mov eax, 1        ; sys_exit system call
    xor ebx, ebx      ; Exit code 0
    int 0x80          ; Call kernel

Here's FORTRAN

program iterate_from_one_to_ten
    implicit none
    integer :: i

    ! Loop from 1 to 10
    do i = 1, 10
        print *, i
    end do
end program iterate_from_one_to_ten

Here's COBOL

PROGRAM-ID. IterateFromOneToTen.

ENVIRONMENT DIVISION.

DATA DIVISION.
WORKING-STORAGE SECTION.
    01  WS-Counter PIC 9(2) VALUE 1.

PROCEDURE DIVISION.
    PERFORM VARYING WS-Counter FROM 1 BY 1 UNTIL WS-Counter > 10
        DISPLAY WS-Counter
    END-PERFORM.

    STOP RUN.
[–] naonintendois@programming.dev 1 points 5 months ago* (last edited 5 months ago)

The assembly doesn't print 1-10, it prints 1-9 then :.

[–] nargis@lemmy.dbzer0.com 0 points 5 months ago* (last edited 5 months ago) (1 children)

Four. English, Hindi, Marathi (native) and Kannada. Sanskrit as well, but it's a dead language, and I can't speak Sanskrit because the grammar is extremely complicated. Had it in school for 3 years. So 5, if you're counting Sanskrit.

I generally count in English, unless I am using another language with my friends (excluding Sanskrit).

[–] sxan@midwest.social 1 points 5 months ago

Sanskrit is so interesting, and an unusual one! It reminds me that I haven't seen anyone mention Latin yet, which is odd because it's relatively more common and you'd expect some lawyers and doctors on Lemmy.

I use Esperanto as my utility counting language, and I usually count in dozenal (with help-words for 10 & 11). Any time I'm doing any activity requiring me to tally, it's usually also mind-numbingly dull so adding mental gymnastics helps. Do you ever use Sanskrit this way? I think I would, if I knew any Sanskrit.

[–] Old_Jimmy_Twodicks@sh.itjust.works 0 points 5 months ago (1 children)

English:

1 2 3 4 5 6 7 8 9 10

Spanish:

1 2 3 4 5 6 7 8 9 10

French:

1 2 3 4 5 6 7 8 9 10

German:

1 2 3 4 5 6 7 8 9 10

Italian:

1 2 3 4 5 6 7 8 9 10

Greek:

1 2 3 4 5 6 7 8 9 10

Mongolian:

᠐ ᠑ ᠒ ᠓ ᠔ ᠕ ᠖ ᠗ ᠘ ᠙ ᠑᠐

[–] MoreFPSmorebetter@lemmy.zip -1 points 5 months ago

...3? English, Spanish and German.

Though as I say this I am struggling to remember how to say 10 Spanish (I failed Spanish 3 times in highschool).

So let's calling it 2.9 lol