#include <cstdio>
int main(){
int s=12;
int c=0;
int l=1;
freopen("hallin.txt","r",stdin);
freopen("hallout.txt","w",stdout);
scanf("%d",&s);
while(s>0){
s-l;
l++;
c++;
}
printf("%d",c);
return 0;
}
Line 10, s-l;
, is not doing anything.
Last edited on