Home > Back-end >  C language foundation QWQ for help
C language foundation QWQ for help

Time:06-11

#include
Int maximum (int a, int b)
{
Int Max;
If (a> B)
Max=a;
The else
Max=b;
The return of Max;
}
Void main ()
{
Int a, b, Max;
The scanf (" & amp; D % d ", & amp; A, & amp; b);
Maximum (a, b);
Printf (" % d \ n ", the maximum (a, b));
Please inform where is wrong, thank you QWQ

CodePudding user response:

The scanf (" & amp; d % d ", & amp; A, & amp; b);
Instead of
The scanf (" % d % d ", & amp; A, & amp; b);

CodePudding user response:

reference 1st floor Italink response:
the scanf (" & amp; d % d ", & amp; A, & amp; b);
Instead of
The scanf (" % d % d ", & amp; A, & amp; b);

#include
Void main ()
{
Int n, he=0, I;
For (n=1; N<=200; N++)
If (n % 2==0 & amp; & N % 9==0);
I=n;
He=he + I;
Printf (" % d \ n ", he);
}
Big bosses the QWQ

CodePudding user response:

 
#include
Void main ()
{
Int n, he=0;
For (n=1; N & lt;=200; N++)
If (n % 2==0 & amp; & N % 9==0) {
He=he + n.
}
Printf (" % d \ n ", he);
return;
}

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related