Задача №1.#include<iostream>#include<math.h>using namespace std;long i,sum;int main(){ for(i=10; i<=30; i++) { sum+=i; cout<<sum<<endl; } return 0; }#include<iostream>#include<math.h>using namespace std;long i,sum;int main(){ i=10; sum=0; while(i<=30) { sum+=i; cout<<sum<<endl; i++; } return 0;}#include<iostream>#include<math.h>using namespace std;long i,sum;int main(){ i=10; sum=0; do { sum+=i; cout<<sum<<endl; i++; } while(i<=30); return 0;}№2#include<iostream>#include<math.h>using namespace std;long i,a,b,k;int main(){ cin>>a; for(i=1; i<=10; i++) { cin>>b; if(b==a) k++; } cout<<k; return 0;}#include<iostream>#include<math.h>using namespace std;long i,a,b,k;int main(){ i=1; cin>>a; while(i<=10) { cin>>b; if(b==a) k++; i++; } cout<<k; return 0;}#include<iostream>#include<math.h>using namespace std;long i,a,b,k;int main(){i=1; cin>>a; do { cin>>b; if(b==a) k++; i++; } while(i<=10); cout<<k; return 0;}№3#include<iostream>#include<math.h>using namespace std;long a,b,k;int main(){ cin>>a>>b; k=a*a+abs(b)+5*a-10*b; cout<<k; return 0;}№4#include<iostream>#include<math.h>using namespace std;long a,b,k;int main(){ cin>>a; if(a>=0) a++; else a-=2; return 0;}№5#include<iostream>#include<math.h>using namespace std;double i,u;int main(){ for(i=0; i<=10; i+=0.3) { u=i+1; cout<<u<<endl; } return 0;}