준이에용 2023. 3. 15. 12:47

매주 수요일은 C언어 하는 날 

 

문제 번호: 15552

사용한 프로그래밍 언어: C언어

간단한 설명: 테스트케이스 개수를 입력받은 반복문을 이용해서 수를 입력받고 수의 합을 출력했다.

#include <stdio.h>

int main(void){
  int t; // T
  int a, b; // A, B

  scanf("%d", &t);

  for(int i=0; i<t; i++){
    scanf("%d %d", &a, &b);
    printf("%d\n", a+b);
  }

  return 0;
}