Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
C# return keyword ↩️
Play lesson

C# tutorial for beginners 🎵 - C# return keyword ↩️

5.0 (6)
48 learners

What you'll learn

This course includes

  • 4 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

C# return keyword tutorial example explained #C# #return #keywords using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // return = returns data back to the place where a method is invoked double x; double y; double result; Console.WriteLine("Enter in number 1: "); x = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Enter in number 2: "); y = Convert.ToDouble(Console.ReadLine()); result = Multiply(x, y); Console.WriteLine(result); Console.ReadKey(); } static double Multiply(double x, double y) { return x * y; } } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere