Home > Back-end >  Someone to help me take a look at which there is something wrong with it
Someone to help me take a look at which there is something wrong with it

Time:10-04

# include & lt; stdio.h>
# include & lt; Stdlib. H>

Int main ()
{
Float a, b, s;
Int c, t;
The scanf (" % f, % d ", & amp; S & amp; T);
If (s
=3)A=10;
Else if (s> 3 & amp; & S<=10)
A=2 * s + 4;
The else
A=3 * s - 6;
If (t<5)
B=0;
The else
B=t % 5 * 2;
C=(int) (a + b);
Printf (" % d ", c);
Return 0;
}

CodePudding user response:

The scanf (" % f, % d ", & amp; S & amp; T ); In this place without the comma, & amp; S and & amp; Between t

CodePudding user response:

Thank you thank you torture along while

CodePudding user response:

Fun
reference 1 floor response:
the scanf (" % f, % d ", & amp; S & amp; T ); In this place without the comma, & amp; S and & amp; Between t

Why, when t greater than 5 after even if the wrong I good

CodePudding user response:

B= ( * 2;

Multiplication higher priority than %, your writing will be equivalent to 10 b=t %
  • Related