#include
#include
using namespace std;
int main() {
double s=0,p=1,ss=0,b;
int a,x,k,y;
cout << "a= ";
cin >> a;
cout << "b= ";
cin >>b;
for (x=5;x<=10;x++){
s+=a*x+b;
}
for(a=10;a<=15;a++) {
p*=(a+b)/sqrt(a*a+x*x);
}
for (k=1;k<=5;k++) {
double m=0;
for (y=2;y<=7;y++){
m+=(a*k+b*y)/sqrt(k*k+y*y);
}
ss+=m;
}
cout<<"s= "<
}
2-topshiriq
Natural n(0
#include
#include
using namespace std;
int main() {
int n,a=0;
cout << " ";
cin >> n;
for (int i=1; i<=n; i++) {
a=0;
for (int j=1; j<=i/2;j++) {
if (i%j==0) {
a+=j;
}
}
if(a==i) cout< }
}
Do'stlaringiz bilan baham: |