using System; namespace ProductOfTwoNumbers { class Program { static void Main(string[] args) { int x, y; int result; Console.Write("\n Enter the first number : "); x = Convert.ToInt32(Console.ReadLine()); /* reading 1st number from user*/ Console.Write("\n Enter the second number: "); y = Convert.ToInt32(Console.ReadLine()); /* reading 2nd number from user*/ result = x * y; /* storing the product in result*/ Console.WriteLine("\n The product of two numbers is: {0} \n", result); Console.ReadLine(); } } }
Output:
For C program : c program to get the product of two numbers
Great Explanation..Very good Example..
ReplyDeleteOnline CSharp
Training
C Sharp Training
Online C# Training from India
C Sharp Training in Chennai
C# Training
Online Dot Net Training
.net online Training
ASP NET Training
a valid information for users.
ReplyDeletec sharp training in chennai
Thanks for sharing such a helpful, and understandable blog. I really enjoyed reading it.
ReplyDeleteRobots for kids
Robotic Online Classes
Robotics School Projects
Programming Courses Malaysia
Coding courses
Coding Academy
coding robots for kids
Coding classes for kids
Coding For Kids