Home > Net >  Please the great god save small white.
Please the great god save small white.

Time:10-01

A total of 13 problem is how to write,  oneself write not to come out, not an error but debugging

CodePudding user response:

Write your homework

CodePudding user response:

And before the students or the same person

CodePudding user response:

Listen to speak to write out in class

CodePudding user response:

refer to the second floor Bridge_go response:
and before is the classmate still the same person

later to ask the rest of the class

CodePudding user response:

You should have your post, we'll help you see what is wrong, rather than directly asked somebody else to answer, so learn knowledge

CodePudding user response:

 static void Main (string [] args) 
{
Console. WriteLine (Sum (100));//sum within 100

Int a=15, b=20;
Console. WriteLine (" a={0} b={1} common multiple={2} ", a, b, CommonMultiple (a, b));

Console. WriteLine (" a={0} b={1} common divisor={2} ", a, b, CommonDivisor (a, b));

The Console. ReadKey ();
}

Static int the Sum (int a)
{
Int num=0;
for (int i=0; I & lt; a; I +=3)
{
Num +=I;
}
Return num.
}

Static int CommonDivisor (int a, int b)//the greatest common divisor
{
If (a & lt; B) {a=a + b; B=a - b; A=a - b; }
Return (a % b==0)? B: CommonDivisor (a % b, b);
}

Static int CommonMultiple (int a, int b)//LCM
{
Return a * b/CommonDivisor (a, b);
}

CodePudding user response:

reference Dear200892 reply: 3/f
listen to speak to write out

We do not learn c language matting directly learn c #

CodePudding user response:

refer to 7th floor qq_45646969 response:
Quote: reference Dear200892 reply: 3/f
listen to speak to write out

We do not learn c language matting directly learn c #

C # is a lot easier than C

CodePudding user response:

refer to 7th floor qq_45646969 response:
Quote: reference Dear200892 reply: 3/f
listen to speak to write out

We do not learn c language matting directly learn c #


You put the book title poured over, will write the topic, really easy

CodePudding user response:

Didn't you say your debugging has a problem, then write your code in the trouble,
Guide you to correct mistakes is right
  •  Tags:  
  • C#
  • Related