Home > Back-end > If statements in VS2019 conditions useless. Seek answers.
If statements in VS2019 conditions useless. Seek answers.
Time:09-26
# include "stdio.h" Int main () { Int n, m, num; Printf (" type in two Numbers: "); Scanf_s (" % d, % d ", & amp; N, & amp; M); Num=n;
If (n> M) printf (" % d \ n ", num + 1);
The else printf (" % d \ n ", n * m); return 0; } Results:
Type in two Numbers: 2, 3
CodePudding user response:
All Angle comma and half Angle comma is not the same thing,
CodePudding user response:
Suggestions under the scanf_s n, add a statement printed out the value of m, then according to the results have a look at whether you want to input or input are consistent with you