📄 add2.c
字号:
/* * File: add2.c * ------------ * This program reads in two numbers, adds them together, * and prints their sum. */#include <stdio.h>#include "genlib.h"#include "simpio.h"main(){ int n1, n2, total; printf("This program adds two numbers.\n"); printf("1st number? "); n1 = GetInteger(); printf("2nd number? "); n2 = GetInteger(); total = n1 + n2; printf("The total is %d.\n", total);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -