| Розгалуження. Знайти більше з двох чисел. a)1 спосіб: #include <iostream> using namespace std; int main()
{ int a,b,m; cin>>a>>b; if (a>b) m=a; else m=b; cout<<"max="<<m<<endl; }
б)2 спосіб: #include <iostream> using namespace std; int main() { int a,b,m; cin>>a>>b; a>b?m=a:m=b; cout<<"max="<<m<<endl; }
| |