Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Lien Do

@LienDo
Repls
Community
LienDo
LienDo
shared a Post
3 years ago
Can someone fix my error? I didn't know where to append }
using System; class MainClass { class Arithmetric{ class Check{ public double Add (double a, double b, double c){ double sum = a + b +
TheForArkLD
TheForArkLD
hi put this on code start and end `3 years ago
LienDo
LienDo
shared a Post
3 years ago
using System; class Arithmetric { static public int Add (int a, int b, int c){ int sum = a + b + c; Console.WriteLine (a + "+" + b + "+"
CodeLongAndPros
CodeLongAndPros
Please link to the relevant repl.3 years ago
LienDo
LienDo
shared a Post
3 years ago
using System; namespace MathMethod{ class MainClass { static void Main (string[] args) { MathMethod Math = new MathMethod(); Add(); S
FlickeringSpecializedHypercard
C#
Jakman
Jakman
public static int Add(int firstnumber, int secondnumber) { return firstnumber - secondnumber; } this is the method for ur add thing if u want it.3 years ago
SixBeeps
SixBeeps
You declared the method from inside the main method. You need to declare it in the class, but outside of the main method.3 years ago