TwitterSharebutton

Japanese Command C Language Execution Environment Japanese Command 
C Language Execution Environment
All processing is completed within the device. No data is sent to the server.
All processing is completed within the device.
ABOUT
ABOUT
Because C language keywords and function names are mapped to Japanese, you can program in Japanese.
Because it allows programming with Japanese keywords, it's easy to understand for beginners.

However, the grammar and functionality are essentially the same as C.
The programming skills acquired in this environment can be directly applied to real-world programming.
Similar Apps
OTHER
We also provide a general C language environment that does not support Japanese commands: a browser-based C language execution environment. It is a complete C programming environment dedicated to WindowsA learning C language development environment is also available.
Programming Area
INPUT
        


File
FILE
     
Converting from standard C to Japanese C
TO JP


Sample program
SAMPLE
Everything is working as expected.

A do-nothing program.
Integer Start(Void) { Return 0; }


A program that displays Hello, World.
#Plugin <Input Output>

Integer Start(Void)
{
    Print("Hello world");
    Return 0;
}


A program to display the number 100.
#Plugin <Input Output>

Integer Start(Void)
{
    Print("%d", 100);
    Return 0;
}


A program to perform basic arithmetic operations.
#Plugin <Input Output>

Integer Start(Void)
{
    Print("%d\n", 10 + 3);
    Print("%d\n", 10 - 3);
    Print("%d\n", 10 * 3);
    Print("%d\n", 10 / 3);
    Print("%d\n", 10 % 3);
    Return 0;
}


A program to perform arithmetic operations (addition, subtraction, multiplication, and division) on real numbers.
#Plugin <Input Output>

Integer Start(Void)
{
    Print("%f\n", 10.0 + 3.0);
    Print("%f\n", 10.0 - 3.0);
    Print("%f\n", 10.0 * 3.0);
    Print("%f\n", 10.0 / 3.0);
    Return 0;
}


A program that assigns 10 to a variable and displays it.
#Plugin <Input Output>

Integer Start(Void)
{
    Integer value; /* Variable declaration section */
    value ← 10; /* Substitution part */
    Print("%d\n", value); /* Display Section */
    Return 0;
}


A program that performs calculations (addition, subtraction, multiplication, and division) using values assigned to variables.
#Plugin <Input Output>

Integer Start(Void)
{
    Integer left;
    Integer right;
    left ← 10;
    right ← 3;
    Print("%d\n", left + right);
    Print("%d\n", left - right);
    Print("%d\n", left * right);
    Print("%d\n", left / right);
    Print("%d\n", left % right);
    Return 0;
}


A program that performs arithmetic operations (addition, subtraction, multiplication, and division) using values assigned to real-valued variables.
#Plugin <Input Output>

Integer Start(Void)
{
    Real Number left, right;
    left ← 10;
    right ← 3;
    Print("%f\n", left + right);
    Print("%f\n", left - right);
    Print("%f\n", left * right);
    Print("%f\n", left / right);
    Return 0;
}


A program that displays numbers entered from the keyboard.
#Plugin <Input Output>

Integer Start(Void)
{
    Integer data;
    keyboard input("%d", &data); /* Input section */
    Print("%d\n", data);
    Return 0;
}


A program that calculates and displays the sum of numbers within a range specified by two inputs from the keyboard.
#Plugin <Input Output>

Integer Start(Void)
{
    Integer min, max, sum;

    /* Input section */
    Print("Please enter the minimum and maximum values separated by a comma.:");
    keyboard input("%d , %d", &min, &max);

    /* Calculation Section */
    sum ← (min + max) * (max - min + 1) / 2;

    /* Display section */
    Print("The total for %d to %d is %d.。\n", min, max, sum);
    Return 0;
}


A program to correct the score if it exceeds 100 points entered from the keyboard.
#Plugin <Input Output>

Integer Start(Void)
{
    Integer score;
    Print("Please enter the score.:");
    keyboard input("%d", &score);

    If(score > 100)
    {
        Print("The input is greater than 100, so I will correct it.\n");
        score ← 100;
    }

    Print("Your score is %d points.\n", score);
    Return 0;
}


A program that displays admission fees based on age entered from the keyboard.
#Plugin  <Input Output>
 
Integer Start(Void) 
{
    Integer age;
    Print("Age:");
    keyboard input("%d", &age);

    If(age <= 3) {
        Print("toddler:Free\n");
    } Else If (age <= 12) {
        Print("Child:250 Japan Yen\n");
    }Different{
        Print("Adult:400 Japan Yen\n");
    }

    Return 0;
}


A program that displays a student's name based on an attendance number entered from the keyboard.
#Plugin  <Input Output>
 
Integer Start(Void) 
{
    Integer  no;
    keyboard input( "%d", &no);

    Switch Case(no) {
    Case  1:
        Print( "James\n");
        Break Block; 
    Case  2:
        Print( "Olivia\n");
        Break Block; 
    Case  3:
        Print( "Michael\n");
        Break Block; 
    Case  4:
        Print( "Thomas\n");
        Break Block; 
    Default: 
        Print( "There's no one with that number.\n");
        Break Block; 
    }

    Return  0;
}


A program that calculates and displays amounts discounted from 10% to 90% based on input from the keyboard.
#Plugin  <Input Output>
 
Integer Start(Void) 
{
    Integer  i, price;

    keyboard input( "%d", &price);

    Repeat Count(i ← 1; i <= 9; i++) {
        Print( "%ddiscount = %d\n", i,  (Integer) (price * ((10.0 - i) / 10)));
    }

    Return  0;
}


Write a program that calculates and displays the month in which your allowance exceeds 1 million yen, given that your allowance doubles each month.
#Plugin <Input Output>

Integer Start(Void) 
{
    Real Number money ← 1;
    Integer month ← 1;

    Repeat While(money < 1000000) {
        Print( "%02d Month: %7.0f Yen\n", month, money);
        money *= 2;
        month++;
    }

    Print( "On the %02dth day of the month, it reached %7.0f yen, exceeding 1 million yen.\n", month, money);

    Return 0;
}


A program that validates the radius input from the keyboard and then calculates and displays the area of a circle.
#Plugin  <Input Output>
 
Integer Start(Void) 
{
    Integer  r;
    Real Number  s;

    Repeat at Least Once{
        Print( "Radius?:");
        keyboard input( "%d", &r);
    }Repeat While(r < 0);

    s  ←  r * r * 3.14;
    Print( "The area is %f.\n", s);

    Return  0;
}


Write a program that calculates and displays how many times you need to receive 1% interest to exceed 15000 yen.
#Plugin <Input Output>
 
Integer Start(Void) 
{
    Integer year ← 0;
    Real Number money ← 10000;

    Repeat While(money < 15000) {
        year++;
        money *= 1.01;
    }

    Print("%d , %f\n", year, money);

    Return 0;
}


A program to concatenate and display two strings.
#Plugin <Input Output>
#Plugin <String>
 
Integer Start(Void)
{
    Char str1[12] ← "DRAGON";
    Char str2[] ← "QUEST";
    Concatenate String(str1, str2);
    Print("%s\n", str1);
    Return 0;
}


A program to display student data.
#Plugin <Input Output>
#Plugin <String>
 
TypeDef Struct
{
    Integer year;/* Grade */
    Integer clas;/* Class */
    Integer number;/* Seat number */
    Char name[64];/* name */
    Real Number stature;/* Height */
    Real Number weight;/* Weight */
} student;

Void student_print(student *data);
 
Integer Start(Void)
{
    student data;

    data.year ← 3;
    data.clas ← 4;
    data.number ← 18;
    Copy String(data.name, "MARIO");
    data.stature ← 168.2;
    data.weight ← 72.4;

    student_print(&data);/* Call by address */

    Return 0;
}

Void student_print(student *data)
{
    Print("[Grade]:%d\n", data->year);/* ->Access via symbol */
    Print("[Class]:%d\n", data->clas);
    Print("[Seat number]:%d\n", data->number);
    Print("[name]:%s\n", data->name);
    Print("[Height]:%f\n", data->stature);
    Print("[Weight]:%f\n", data->weight);
    Return;
}


A program that writes Hello, world to the file test.txt.
#Plugin <Input Output>
#Plugin <String>
 
TypeDef Struct
{
    Integer year;/* Grade */
    Integer clas;/* Class */
    Integer number;/* Seat number */
    Char name[64];/* name */
    Real Number stature;/* Height */
    Real Number weight;/* Weight */
} student;

Void student_print(student *data);
 
Integer Start(Void)
{
    student data;

    data.year ← 3;
    data.clas ← 4;
    data.number ← 18;
    Copy String(data.name, "MARIO");
    data.stature ← 168.2;
    data.weight ← 72.4;

    student_print(&data);/* Call by address */

    Return 0;
}

Void student_print(student *data)
{
    Print("[Grade]:%d\n", data->year);/* ->Access via symbol */
    Print("[Class]:%d\n", data->clas);
    Print("[Seat number]:%d\n", data->number);
    Print("[name]:%s\n", data->name);
    Print("[Height]:%f\n", data->stature);
    Print("[Weight]:%f\n", data->weight);
    Return;
}

Correspondence table
TABLE
Currently, there are commands with unverified functionality.
Japanese Command Standard C Usage Examples
#Plugin #include #Plugin
Print printf Print("%d", 100);
← = Integer score ← 123;
If if If(score > 100) {}
Integer int Integer score ← 123;
Return return Return 0;
#Define #define #Define PI 3.14
Break Block break Break Block;
Case case case 5;
Char char Char c ← 'A';
Continue continue Continue;
Default default Default:
Repeat at Least Once do Repeat at Least Once {} Repeat While( i == 0 );
Real Number double Real Number f = 1.2345678;
Different else If (i == 0) {} Different {};
List enum List COLOR { RED , BLUE , YELLOW };
Extern extern Extern Integer value ← 123;
Single Float float Single Float f ← 1.2f;
Repeat Count for Repeat Count(i ← 1; i <= 9; i++) {}
Jump To goto Jump To ERROR;
Long Int long Long Int score ← 123;
Short Int short Short Int short ← 1;
Signed signed Signed Integer value ← -100;
Unsigned unsigned Unsigned Integer value ← 100;
SizeOf sizeof SizeOf(array);
Static static Static Integer value ← 1;
Struct struct TypeDef Struct { Integer year; } student;
Switch Case switch Switch Case(no) {}
TypeDef typedef typedef Integer tYen;
Union union Union tUnion { Real Number x; Integer y; };
Void void Integer Start(Void){}
Repeat While while Repeat While(money < 1000000) {}
Else If else if If(age <= 3) {} Else If (age <=12) {}Different{};
Keyboard stdin Read String from File(buf, SizeOf(buf), Keyboard);
Screen stdout Save Character to File('A' , Screen);
Error Screen stderr Save Character to File('E' , Error Screen);
Open File fopen file ← Open File("test.txt", "w");
Close File fclose Close File(file);
Read Character from File fgetc Integer value ← Read Character from File( file );
Read String from File fgets Read String from File(buf, SizeOf(buf), file);
Save Character to File fputc Save Character to File('A',file);
Save String to File fputs Save String to File("ABCDEF",file);
Read Data from File fread Read Data from File(buf, SizeOf(Integer), 10, file);
Save Data to File fwrite Save Data to File(buf, SizeOf(Integer), 10, file);
Save Formatted String to File fprintf Save Formatted String to File(file,"%d,%d",a,b);
Read Formatted String from File fscanf Read Formatted String from File(file, "%d,%d",&a,&b);
Get File Position ftell Integer pos ← Get File Position(file);
Set File Position fseek Set File Position(file,0,SEEK_SET);
Check End of File feof If(Check End of File(file)) {}
Check File Error ferror If(Check File Error(file)) {}
Clear File Error clearerr Clear File Error(file);
Flush File fflush Flush File(file);
Reopen File freopen Reopen File(filename, "w", Screen);
Rename File rename Rename File(oldfilename, newfilename);
Delete File remove Delete File(filename);
Read Character from Keyboard getchar Char c ← Read Character from Keyboard();
Print Character to Screen putchar Print Character to Screen(c);
Read String from Keyboard gets Read String from Keyboard(buf);
Print String to Screen puts Print String to Screen("Hello world");
Print Error to Screen perror Print Error to Screen("Error");
keyboard input scanf keyboard input("%d", &data);
Create Dynamic Array malloc Char *str ← (Char *)Create Dynamic Array(100);
Create Zeroed Dynamic Array calloc Char *array ← (Char *)Create Zeroed Dynamic Array(100);
Resize Dynamic Array realloc *array ← realloc(NULL, 100);
Free Dynamic Array free Free Dynamic Array(array);
Abs abs abs(-100);
String to Float atof Real Number f ← String to Float("123.45");
random number rand Return 1 + (Integer)(rand() * (100 - 1 + 1.0) / (1.0 + RAND_MAX));
End exit End(0);
Abort Program abort Abort Program();
Register Exit Handler atexit atexit(funcexit);
Get Env getenv Char* str ← Get Env("PATH");
Search bsearch Integer* result ← Search( &target, array, SizeOf(array)/SizeOf(array[0]), SizeOf(array[0]), funccompare );
Sort qsort Sort( array, SizeOf(array)/SizeOf(array[0]), SizeOf(array[0]), funccompare );
Execute Command system Execute Command("DIR");
Is Alphabet isalpha If(Is Alphabet('a'))
Is Uppercase isupper If(Is Uppercase('A'))
Is Lowercase islower If(Is Lowercase('a'))
Is Digit isdigit If(Is Digit('6'))
Is Space isspace If(Is Space(' '))
Is Alphanumeric isalnum If(Is Alphanumeric('d'))
Is Control Char iscntrl If(Is Control Char('\t'))
Is Printable Char isprint If(Is Printable Char('G'))
Is Punctuation ispunct If(Is Punctuation('['))
Is Hex Digit isxdigit If(Is Hex Digit('D'))
Copy String strcpy Copy String(stra,strb);
Copy String with Length strncpy Copy String with Length(stra,strb,4);
Concatenate String strcat Concatenate String(str1, str2);
Concatenate String with Length strncat Concatenate String with Length(str1, str2, 3);
number of characters strlen Integer len ← number of characters(str);
Compare Strings strcmp If (Compare Strings(str1, str2) == 0) {}
Compare Strings up to Length strncmp If (Compare Strings up to Length(str1, str2 , 5 ) == 0) {}
Find Character in String strchr Char *c ← Find Character in String(str, 'A');
Find Character from End strrchr Char *c ← Find Character from End(str, 'A');
Find Substring strstr Char *str ← Find Substring(str1, str2);
Copy Array memcpy Copy Array(array1, array2, SizeOf(array2));
Safe Copy Array memmove Safe Copy Array(array1, array2, SizeOf(array2));
Fill Array memset Fill Array(array, 0 , SizeOf(array));
Search in Array memchr Char p ← Search in Array(str, 'h', SizeOf(str));
Float Abs fabs Real Number f ← Float Abs(-123.45);
Square Root sqrt Real Number value ← sqrt(4);
Power pow Real Number value ← Power(2.0, 3.0)
Modulo fmod Real Number value ← Modulo(9,2);
sine sin Real Number value ← sine(1.2);
cosine cos Real Number value ← cosine(90);
tangent tan Real Number value ← tangent(10);
arc cosine acos Real Number value ← arc cosine(1);
arc sine asin Real Number value ← arc sine(1);
arc tangent atan Real Number value ← arc tangent(1);
Hyperbolic Sine sinh Real Number value ← Hyperbolic Sine(0);
Hyperbolic Cosine cosh Real Number value ← Hyperbolic Cosine(0);
Hyperbolic Tangent tanh Real Number value ← Hyperbolic Tangent(0);
Round Up ceil Real Number value ← Round Up(123.4);
Round Down floor Real Number value ← Round Down(123.4);
Exponential exp Real Number value ← Exponential(1);
Natural Log log Real Number value ← Natural Log(4);
Common Log log10 Real Number value ← Common Log(100);
Seconds Since 1970 time Long Int sec ← Seconds Since 1970(NULL);
CPU Time clock Long Int cputime ← CPU Time();
Time Difference difftime Real Number diff ← difftime(time2,time1);
To Local Time localtime time_t jptm ← To Local Time(Seconds Since 1970(NULL));
To UTC Time gmtime time_t gmtm ← To UTC Time(Seconds Since 1970(NULL));
Convert Time to String ctime Print("%s", Convert Time to String(Seconds Since 1970(NULL)));
Assert Condition assert Assert Condition(value < 1);
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
#Plugin
Downloading...
Technology Overview
IMPLEMENTATION
We are implementing Japanese instructions by replacing the source code and then passing it to the compiler.
Please note.
WARNING
Currently, we are not performing precise parsing when replacing source code.
Therefore, it may not always be replaced correctly depending on how it is written.

Currently, we do not support specifying variable names and function names in Japanese.
Terms of Use
TERMS OF USE
Use of this tool is completely free of charge. The developer does not ask for any form of compensation.
You are free to use this tool for any purpose, including commercial use.
The developer assumes no responsibility for any damages resulting from the use of this tool.
licence list
LICENCE
Powered by Emscripten https://emscripten.org/

Powered by Monaco Editor https://microsoft.github.io/monaco-editor/

picoc is published under the "New BSD License".
http://www.opensource.org/licenses/bsd-license.php
Copyright (c) 2009-2011, Zik Saleeba
All rights reserved.
https://gitlab.com/zsaleeba/picoc
οΌ γ‚Ώγ‚€γƒˆγƒ«
οΌ Text
Comments, requests, bug reports, etc.
FEEDBACK
Please send your comments, requests, bug reports, etc. to the following address.
https://x.com/mmgamess
mmmgames@gmail.com
Share
SHARE
If you like the tool, we would be very encouraged if you would share it.
TwitterSharebutton FacebookSharebutton Hatebubutton
Convenient Apple
UTILITY