Home > Back-end >  C of a new one, please advice why run to ignore the last set of input number
C of a new one, please advice why run to ignore the last set of input number

Time:09-25

# include "stdafx. H"
H # include "Windows."
# include

Int main ()
{
Int a=0, b=0;
If (STD: : cin> a) {
Int CNT=1;
While (STD: : cin> b) {
If (b==a)
+ + CNT;
The else {
STD: : cout "occurs"<<"times" a=b;
CNT=1;
}
}
STD: : cout
"occurs"<<"times" }
system("pause");
return 0;
}
  • Related