Program Vy Cầm Chip
Uses Crt;
Var S, i, n: integer;
Begin;
Read (n);
S:=0
For i:=1 to n do S:=S+i
Write (S);
Readln;
End.
#include <bits/stdc++.h>
using namespace std;
long long n,i,t;
int main()
{
cin>>n;
cout<<"Cac so chia het cho 5 va nho hon n la: ";
for (i=1; i<=n; i++)
if (i%5==0) cout<<i<<endl;
t=0;
for (i=1;i<=n; i++) t+=i;
cout<<"Tong cua day so tu 1 den n la: "<<t;
return 0;
}