• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Home
  • How To’s
  • Lifestyle
  • Sports
  • Photography
  • Courses
  • Contact Us
  • SnazzyMedia Team

Snazzy Media

your world amplified!

  • Disclaimer
  • Privacy
  • Contact Us

September 30, 2016

Multiplication; C# Exercises and Solutions

1.4 Multiplication

Question


Write a program which accept two numbers, perform Multiplication and print their Result.

Solution


class Multiplication
    {
        static void Main(string[] args)
        {
            int a, b, c;                               //initialization
            Console.Write(“Enter first number : “);
            a = Convert.ToInt16(Console.ReadLine());
            Console.Write(“Enter second number : “);
            b = Convert.ToInt16(Console.ReadLine());
            c = a * b;                                //calculation
            Console.WriteLine(“Multiplication = “ + c);
        }
    }

 Previous                                                Home                                                   Next


Output

Multiplication


 

Spread some love:

  • Twitter
  • Facebook
  • WhatsApp
  • Pocket
  • Reddit
  • Pinterest
  • LinkedIn

Related

Filed Under: Uncategorized Tagged With: .NET, C#, Programming

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published.

Primary Sidebar

Recent Posts

  • Aegon Life Insurance re-announces its Unique and beneficial “iTerm” online Protection plan
  • Vivo V5 : 20 MP Front Camera for a Perfect Selfie
  • A Flying Jatt : Our Desi SuperHero with some Desi Moves
  • Honor launches Honor 8, Honor 8 Smart and Holly 3 in India
  • How to Remove a Bubble Gum from your Shoe?

Recent Comments

  • kolly on Samsung launches Galaxy J7 Prime and J5 Prime in India
  • Jay on GOQii Band 2.0 : The best in class fitness band with USB charging for the first time!

Categories

  • Android Apps
  • C#
  • Courses
  • Featured
  • Fitness
  • Gadgets
  • Health & Fitness
  • How To
  • Lifestyle
  • Science
  • Space
  • Sports
  • Travel
  • Uncategorized
  • Video

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright© 2021 · by Shay Bocks