Advertisement
Shailrshah

Area of a circle

Mar 10th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2. namespace ConsoleApplication3{
  3.     class Program{
  4.         static void Main(string[] args){
  5.             int r;
  6.             Console.Write("Enter the circle's radius: ");
  7.             r = Convert.ToInt32(Console.ReadLine());
  8.             double area = 3.14 * r * r;
  9.             Console.WriteLine("The circle's area is "+area);
  10.             Console.ReadLine();
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement