Дамп всех задач

This commit is contained in:
vlad committed 2017-05-22 13:29:43 +03:00
1 parent b970626fef
commit 93746b05d7
173 files changed
+2505

No files matched your search

Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
// ïðèìåð 3
#include <iostream>
using namespace std;
int main() {
int length, width;
cout <<"äëèíà";
cin >>length;
cout <<"øèðèíà";
cin >>width;
cout <<"ïëîùàäü";
cout <<length * width<<endl;
system ("pause");
return 0;
}
+16
View File
@@ -0,0 +1,16 @@
#include <iostream>
using namespace std;
int main() {
double x, l;
cout<<"Öåíà çà êâàäðàòíûé ìåòð ëèíîëèóìà:";
cin>>l;
cout<<"Ââåäèòå äëèíó êóñêà:";
cin>>x;
cout<<"Ñòîèìîñòü êóñêà =";
cout<<3.05/l*x<< endl;
system ("pause");
return 0;
}
+19
View File
@@ -0,0 +1,19 @@
#include <iostream>
using namespace std;
int main() {
double a, b, f;
cout<<"Ââåäèòå äëèíó ñòåíû:";
cin>>a;
cout<<"Ââåäèòå âûñîòó ñòåíû:";
cin>>b;
cout<<"Ðóëîí îáîåâ ðàçìåðîâ: 12*1"<< endl;
cout<<"Ââåäèòå öåíó ðóëîíà:";
cin>>f;
cout<<(a*b)/(12*1)*f<< endl;
system ("pause");
return 0;
}
@@ -0,0 +1,13 @@
#include <iostream>
using namespace std;
int main() {
double a;
cout<<"Ââåäèòå çàðàáîòîê:";
cin>>a;
cout<<a/100*13<< endl;
system ("pause");
return 0;
}
+15
View File
@@ -0,0 +1,15 @@
#include <iostream>
using namespace std;
int main() {
double y, z;
cout<<"y=(z+12*z)/(z*z)"<< endl;
cout<<"Ââåäèòå çíà÷åíèå z:";
cin>>z;
cout<<"y=";
y = (z+12*z)/(z*z);
cout<<y<< endl;
system ("pause");
return 0;
}
+14
View File
@@ -0,0 +1,14 @@
#include <iostream>
using namespace std;
int main() {
double x;
cout<<"Ââåäèòå ñòîèìîñòü çàêàçà:";
cin>>x;
cout<<"×àåâûå = 15%"<< endl;
cout<<x*4/100*15<< endl;
system ("pause");
return 0;
}
+19
View File
@@ -0,0 +1,19 @@
//çàäà÷à 1
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cout <<"÷èñëî 1"<<endl;
cin >>a;
cout <<"÷èñëî 2"<<endl;
cin >>b;
cout <<"÷èñëî 3"<<endl;
cin >>c;
cout <<"âûâîä"<<endl;
d=a+b+c;
cout <<d <<endl;
system ("pause");
return 0;
}
+21
View File
@@ -0,0 +1,21 @@
//çàäàíèå 2
#include <iostream>
using namespace std;
int main() {
int a, b, c, d, n;
cout <<"öåíà ïåð÷àòîê"<<endl;
cin >>a;
cout <<"öåíà ïîðòôåëü"<<endl;
cin >>b;
cout <<"öåíà ãàëñòåê"<<endl;
cin >>c;
cout <<"äåíüãè"<<endl;
cin >>d;
cout <<"ñäà÷à"<<endl;
n=d-a-b-c;
cout <<n<<endl;
system ("pause");
return 0;
}
@@ -0,0 +1,14 @@
#include <iostream>
using namespace std;
int main() {
double l, n;
cout <<"Ââåäèòå äëèíó áðåâíà:\n";
cin >>l;
cout <<"Ââåäèòå äëèíó îòðåçêîâ:\n";
cin >>n;
cout <<"Ñðåäíÿÿ äëèíà îòðåçêîâ: "<<l/n<<endl;
system ("pause");
return 0;
}
+19
View File
@@ -0,0 +1,19 @@
//çàäà÷à 3
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cout <<"ó÷àñòîê 1"<<endl;
cin >>a;
cout <<"ó÷àñòîê 2"<<endl;
cin >>b;
cout <<"ó÷àñòîê 3"<<endl;
cin >>c;
cout <<"ñðåäíÿÿ ñêîðîñòü"<<endl;
d=(a+b+c)/3;
cout <<d<<endl;
system ("pause");
return 0;
}
+17
View File
@@ -0,0 +1,17 @@
//çàäà÷à 4
#include <iostream>
using namespace std;
int main() {
int x, y, n;
cout <<"äî ñòîëáà"<<endl;
cin >>x;
cout <<"îò ñòîëáà äî ñòîëáà"<<endl;
cin >>y;
cout <<"äî ñëåäóþùåãî ñòîëáà"<<endl;
n=x+y;
cout <<n<<endl;
system ("pause");
return 0;
}
@@ -0,0 +1,16 @@
#include <iostream>
using namespace std;
int main() {
double a, b, c;
cout <<"Ñêîëüêî èãðîê ñáèë ñàìîë¸òîâ, ðàêåò, ñïóòíèêîâ?\n";
cin >>a>>b>>c;
cout <<"Èãðîê ñáèë:\n";
cout <<a<<" ñàìîë¸òîâ\n";
cout <<b<<" ðàêåò\n";
cout <<c<<" ñïóòíèêîâ\n";
cout <<"Îí íàáðàë "<<(a*50)+(b*100)+(c*200)<<" î÷êîâ\n";
system ("pause");
return 0;
}
@@ -0,0 +1,12 @@
#include <iostream>
using namespace std;
int main() {
double a;
cout <<"Ââåäèòå ÷èñëî ðàáî÷èõ:\n";
cin >>a;
cout <<"Çàðîáîòîê êàæäîãî ðàáî÷åãî åñëè çàðîáîòîê ïðåäïðèÿòèÿ 624750 ðóá.: "<<624750/a<<endl;
system ("pause");
return 0;
}
@@ -0,0 +1,14 @@
#include <iostream>
using namespace std;
int main() {
double a, h;
cout <<"Ââåäèòå îñíîâàíèå:\n";
cin >>a;
cout <<"Ââåäèòå âûñîòó:\n";
cin >>h;
cout <<"Ïëîùàäü òðåóãîëüíèêà: "<<(a*h)/2<<endl;
system ("pause");
return 0;
}
@@ -0,0 +1,13 @@
#include <iostream>
using namespace std;
int main() {
double r;
cout <<"Ââåäèòå ðàäèóñ îêðóæíîñòè:\n";
cin >>r;
cout <<"Äëèíà îêðóæíîñòè: "<<3.14*2*r<<endl;
cout <<"Ïëîùàäü îêðóæíîñòè: "<<3.14*r*r<<endl;
system ("pause");
return 0;
}
+12
View File
@@ -0,0 +1,12 @@
#include <iostream>
using namespace std;
int main() {
double a;
cout<<"ââåäèòå äëèíó â ìåòðàõ:\n";
cin>>a;
cout<<"äëèíà â ôóòàõ:"<<a*3.28<< endl;
system ("pause");
return 0;
}
+27
View File
@@ -0,0 +1,27 @@
#include <iostream>
using namespace std;
int main() {
int v, s;
cout <<"ââĺäčňĺ ÷čńëî čç 5-ňč öčôđ:\n";
cin >>v;
s=0;
cout <<v/10000<<" ";
s=s+v/10000;
v=v%10000;
cout <<v/1000<<" ";
s=s+v/1000;
v=v%1000;
cout <<v/100<<" ";
s=s+v/100;
v=v%100;
cout <<v/10<<" ";
s=s+v/10;
v=v%10;
cout <<v/1<<"\n";
s=s+v;
cout <<"ńóěěŕ ýňčő ÷čńĺë = "<<s<<endl;
system ("pause");
return 0;
}