Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema 57
- #include <fstream>
- using namespace std;
- ifstream fin("n_suma.in");
- ofstream fout("n_suma.out");
- int main()
- {
- int n,a,s=0;
- fin>>n;
- while (n!=0){
- fin>>a;
- s=s+a;
- n--;
- }
- fout<<s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement