Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
int_A_1a.c
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#include<stdio.h> #include<string.h> main() { char x[20]; int a[200]; do{ scanf("%s", x); if((x[1]=='=')&&(x[3]=='+')) { a[x[0]]=a[x[2]]+a[x[4]]; } if((x[1]=='=')&&(x[2]<60)) { a[x[0]]=x[2]-48; } elif((x[1]=='=')&&(x[2]>60)&&(x[3]!='+')) { a[x[0]]=a[x[2]]; } if(x[1]=='r') { printf("%d\n",a[x[6]]); sleep(1); } }(while(1)); }
gcc
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
edit mode
|
history
|
discussion