|
|
вернуться в форумhelp, please; i can't get AC, but i know that my program is wright Послано Foxy 23 авг 2001 22:38 Re: help, please; i can't get AC, but i know that my program is wright Послано GoGo 24 авг 2001 01:04 > here is my source (C++): --------------------------- #include <stdio.h> int i;long sum=0; int n; void main() { scanf("%d",&n); if(n<1) for(i=1;i>=n;i--) sum+=i; else for(i=1;i<=n;i++) sum+=i; printf("%ld",sum); } -------------------------- Re: help, please; i can't get AC, but i know that my program is wright Try to delete void because i did so , and my programm was right good Luck ! |
|
|