© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
Block

❔ Trying to figure out how to write a simple script

I'm fairly new to c# and I'm trying to figure out how to write this question in a for loop.
it goes
-6. Define a method named DisplayMultiplicationTable that takes an integer parameter.
a. The method loops through all the values between 1 and 12 (inclusive) and display the multiplication with the parameter value in a statement like this 5 x 3 = 15.
b. Call the method in the Start() with a value of 3. The output should look like this:
3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
etc.
Help would be very much appreciated!!!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to write a specific script
C#CC# / help
3y ago
❔ Trying to figure out a data type
C#CC# / help
4y ago
Trying to figure out an exercise
C#CC# / help
4y ago
✅ Trying to figure out how to loop game Avalonia
C#CC# / help
3y ago