Answers for "oliver codechef"

0

oliver codechef

int sum=0,k=1,times=0;
for(int i=1;i<=n;i++){
    sum=sum+k,times++;
    if(times==k)times=0,k++;
}
Posted by: Guest on February-03-2021

Browse Popular Code Answers by Language