Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
arthi3.cpp
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> void func(int r,float*a,float*p) { *a=3.14*r*r; *p=2*3.14; } void main() { int radius float area,perimeter; printf("enter radius of a circle"); scanf("%d",&radius); fun(radius,&area,&perimeter); printf("area=%f",area); printf("perimeter=%f",perimeter); }
g++
5
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.09 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0.35 sec
fork mode
|
history
|
discussion
Enter radious of a circle: The area of the circle is: 31.416000The perimeter is: 78.540001