Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.1 #include <iostream>
- using namespace std;
- int main()
- {
- cout << "Медникова Елена" << endl;
- cout << "Ул. Фестивальная 20-96" << endl;
- return 0;
- }
- 1.2 #include <iostream>
- int main()
- {
- using namespace std;
- int farlong;
- int x;
- farlong = 220;
- cout<<"Введите расстояние в фарлонгах и преобразуйте его в ярды:" << endl;
- cin >> x;
- cout << x <<" фоланг=" << farlong * x <<" ярд" ;
- return 0;
- }
- 1.3 #include <iostream>
- #include <cmath>
- int main()
- {
- using namespace std;
- double a;
- double b;
- double c;
- double p;
- double s;
- cout << "Введите сторону а:" << endl;
- cin>>a;
- cout <<"Введите соторону b:" << endl;
- cin>>b;
- cout <<"Введите сторону с:" << endl;
- cin>>c;
- p=(a+b+c)/2;
- s=sqrt(p*(p-a)*(p-b)*(p-c));
- cout << s << endl;
- return 0;
- }
- 1.5
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c, min, sec;
- cout <<"Введите часы a:"<< endl;
- cin>>a;
- cout <<"Введите минуты b:"<< endl;
- cin>>b;
- cout <<"Введите секунды c:"<< endl;
- cin>>c;
- min=(a*60)+ b;
- sec=(min*60)+ c;
- cout << sec << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement