1 solutions

  • 0
    @ 2025-11-5 16:58:45

    C++ :

    #include<iostream>
    #include<stdlib.h>
    using namespace std;
    int main(){
    			int a,b;
    		   	   		
    		  while(cin>>a>>b){
    		  if(a==0 && b==0)
    		  {
    		  exit(1);
           	}
    		  else
    		  {
    		  	cout<<a+b<<endl;
    	     }
    			
    			}	return 0;
    			
    } 
    
    • 1

    Information

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