NumAdding

    0

    0

    Mahendra Kumar

    beginnerlearning

    Adding two numbers

    #include <bits/stdc++.h> 
    using namespace std;
    int main() {
    	// Read the number of test cases.
    	int T;
    	scanf("%d", &T);
    	while (T--) {
    		// Read the input a, b
    		int a, b;
    		scanf("%d %d", &a, &b);
    		// Compute the ans.
    		int ans = a + b;
    		printf("%d\n", ans);
    	}
    	return 0;
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.