[C] add2.c -- Add two numbers and print them out toget →→→→→进入此内容的聊天室

来自 Corrupt Wolf, 2022-06-20, 写在 C, 查看 74 次.
URL http://www.code666.cn/view/9ebbf421
  1. /* add2.c -- Add two numbers and print them out together
  2.              with their sum
  3.              AUTHOR:
  4.              DATE:
  5.  */
  6.  
  7. #include <stdio.h>
  8.  
  9. int main(void) {
  10.   int first, second;
  11.  
  12.   printf("Enter two integers > ");
  13.   scanf("%d %d", &first, &second);
  14.   printf("The two numbers are: %d  %d\n", first, second);
  15.   printf("Their sum is %d\n", first+second);
  16. }

回复 "add2.c -- Add two numbers and print them out toget"

这儿你可以回复上面这条便签

captcha