Программа:
С++:
#include <iostream>
using namespace std;
int main()
{
float one, two;
cin >> one;
cin >> two;
if (one > two) {
cout << two;
}
else {
cout << one;
int main (){
int a,b;
cin>> a>>b;
if (a>b){
cout<<b;
else
cout<<a;}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Программа:
С++:
#include <iostream>
using namespace std;
int main()
{
float one, two;
cin >> one;
cin >> two;
if (one > two) {
cout << two;
}
else {
cout << one;
}
}
Verified answer
using namespace std;
int main (){
int a,b;
cin>> a>>b;
if (a>b){
cout<<b;
else
cout<<a;}
return 0;
}