Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'dart:io';
- import 'dart:math';
- void main() {
- print("Task 1: ");
- print("Please enter R value to calculate circumference: ");
- num? number = num.parse(stdin.readLineSync()!);
- num pie = 3.14159;
- num rsq = pow(number, 2);
- num circ = pie * rsq;
- print("Circle circumference would be $circ");
- print("\n---------------\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement