I started a programming course about a month ago, recently we started learning about using different code outside the main string and using them in order to pass data to each other I really got lost and didn't understand a word, wonder if anyone could help explain how it works, we were given some examples to test out. I will list two of the examples below.
1)

static int number0()
{
     int value = 0;
     return value;
}

2)

static double circum (float radius)
{
      double circle = (double)radius;
      circle = System.Math.PI * radius * 2;
      return circle;
}

What exactly you do not understand?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.