#define Constants

Lab C Beginner 10 points

Use #define PI 3.14159. Read a radius and print the circumference and area with 2 decimals.

Input

One decimal number.

Output

Two lines.

Example

Input

1

Output

6.28
3.14
Sample input available Sample output available
Editor
C

Hints

The preprocessor replaces PI with 3.14159 before compiling.

Solution explanation

#define creates a text replacement; constants are written in UPPER_CASE by convention.

Show solution
#include <stdio.h>
#define PI 3.14159

int main() {
    double r;
    scanf("%lf", &r);
    printf("%.2f\n", 2 * PI * r);
    printf("%.2f\n", PI * r * r);
    return 0;
}
Output
Answer
HOME LEARN COMMUNITY DASHBOARD