Advertisement
ElenaMednikova

Untitled

Sep 30th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. 1.1 #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout << "Медникова Елена" << endl;
  8. cout << "Ул. Фестивальная 20-96" << endl;
  9. return 0;
  10. }
  11.  
  12. 1.2 #include <iostream>
  13. int main()
  14. {
  15.  
  16. using namespace std;
  17. int farlong;
  18. int x;
  19. farlong = 220;
  20. cout<<"Введите расстояние в фарлонгах и преобразуйте его в ярды:" << endl;
  21. cin >> x;
  22. cout << x <<" фоланг=" << farlong * x <<" ярд" ;
  23. return 0;
  24.  
  25. }
  26.  
  27.  
  28. 1.3 #include <iostream>
  29. #include <cmath>
  30. int main()
  31. {
  32.  
  33. using namespace std;
  34. double a;
  35. double b;
  36. double c;
  37. double p;
  38. double s;
  39. cout << "Введите сторону а:" << endl;
  40. cin>>a;
  41. cout <<"Введите соторону b:" << endl;
  42. cin>>b;
  43. cout <<"Введите сторону с:" << endl;
  44. cin>>c;
  45. p=(a+b+c)/2;
  46. s=sqrt(p*(p-a)*(p-b)*(p-c));
  47. cout << s << endl;
  48. return 0;
  49.  
  50. }
  51.  
  52. 1.5
  53. #include <iostream>
  54. using namespace std;
  55.  
  56. int main()
  57. {
  58. int a, b, c, min, sec;
  59. cout <<"Введите часы a:"<< endl;
  60. cin>>a;
  61. cout <<"Введите минуты b:"<< endl;
  62. cin>>b;
  63. cout <<"Введите секунды c:"<< endl;
  64. cin>>c;
  65. min=(a*60)+ b;
  66. sec=(min*60)+ c;
  67. cout << sec << endl;
  68. return 0;
  69.  
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement