TOPIC
Output is ok.
Abdullah48 asked 3 years ago
My code is producing correct output. I can't understand what went wrong. this is my code
include
int main(){ int a,n,s; scanf("%d",&a); do{ scanf("%d",&n); }while(n<=0); while(n--){ s=s+a; a++; } printf("%d\n",s); }
This topic was solved and cannot recieve new replies.