1-masala : Ikkita sonni yig’indisini toppish dasturi
#include
using namespace std;
int main()
{
int x,y,s;
cout<<"2 ta son kiriting"<cin>>x;
cin>>y;
s=x+y;
cout<<"s="<return 0;}
2-masala: Ikkita sondan kattasini toppish dasturi
#include
using namespace std;
int main()
{
int x,y,max;
cout<<"2 ta son kiriting"<cin>>x;
cin>>y;
if (x>y) max=x; else max=y;
cout<<"eng katta son max="<return 0;}
Do'stlaringiz bilan baham: |