Type your ugBASIC program here (remember: keywords like PRINT must be UPPERCASE!).
Click on Build menu to select the target: you will download the compiled binary file!

1BmEn(16):ClBl:Dit As8BIT:Diz As8BIT:Dip As8BIT(5),q As8BIT(5),x As8BIT(5),y As8BIT(5):Dia As8BIT=20:Dib As8BIT=20 2Dic As8BIT=70:Did As8BIT=45:Die As8BIT:Dif As8BIT:f=(b^2)/(a^2):e=c:bg:=NwIm(64,72):GeImbg Fm0,0:Foz=1Toa Stp2 3Fot=1To4:p(t)=x(t):q(t)=y(t):Nx:y(1)=SQR((b^2)-((z^2)*f)):x(4)=a-z:y(2)=SQR((b^2)-((x(4)^2)*f)):x(3)=-z:y(3)=-y(1) 4x(2)=-x(4):y(4)=-y(2):x(1)=z:PuImbg At32,24:Fot=1To4:u=(t An3):INCu:xt=x(t):xu=x(u):yt=y(t):yu=y(u):x1=xt+c:y1=yt+d 5x2=xu+c:y2=yu+d:Lnx1,y1 Tox2,y2,Wht:x2=xt+c:y2=yt+e:Lnx1,y1 Tox2,y2,Wht:y1=yt+e:x2=xu+c:y2=yu+e:Lnx1,y1 Tox2,y2,Wht 6Nx:Nx

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.