1 solutions

  • 0
    @ 2025-3-3 16:33:59

    C :

    #include<stdio.h>
    int main(){
          int   a,b;
          scanf("%d %d", &a,&b);
          int  max = a;
          if(b>max) {
           max = b;
           }
          printf("%d",max);
       
    
         return 0;
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    int main(){
    	int x;
    	int y;
    	cin>>x>>y;
    	if(x>y){
    		cout<<x<<endl;
    	}else{
    		cout<<y<<endl;
    	}
    }
    
    	
    
    

    Python :

    a , b = map(int,input().split());
    if a > b:
        print(a)
    else:
        print(b)
    
    • 1

    Information

    ID
    10833
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By