Saad_Devin_addmultiplyfourints

.docx

School

Southern New Hampshire University *

*We aren’t endorsed by this school

Course

-230

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by BaronMoon7849

Report
IT 230 Coding Activity Submission Template Name: Devin Saad Date: 11/3/2023 Class: IT 230 Module: Two 2-2
1 . Insert a copy of your of the ZIP file of all of your Visual Studio project files here so that it can be loaded and run in another Visual Studio: Insert here a copy of your *.cs source code text you used here (copy and paste source code here, do not simply insert *.cs files): // See https://aka.ms/new-console-template for more information // 2-2 Coding Activity using System; class addMultiplyFourInts { static void Main( string [] args) { // Declare Variable names with int Data Type int num1; int num2; int num3; int num4; int sum; int product; // Asign num1-4 variables with values num1 = 13; num2 = 55; num3 = 123; num4 = 325; // Useing Math operators to add and multiply sum = num1 + num2 + num3 + num4; product = num1 * num2 * num3 * num4; // Outputs the Sum & Product of the values Console.WriteLine( $"The sum of {num1} , {num2} , {num3} , and {num4} = {sum} " ); Console.WriteLine( $"The product of {num1} , {num2} , {num3} , and {num4} = {product} " ); } } 2 . Insert a screenshot here of the output that resulted from running your program, showing your last name as the first printed text to the screen:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help