⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add10.c

📁 The art and science of c_source code!
💻 C
字号:
/* * File: add10.c * ------------- * This program adds a list of ten numbers, printing * the total at the end.  Instead of reading the numbers * into separate variables, this program reads in each * number and adds it to a running total. */#include <stdio.h>#include "genlib.h"#include "simpio.h"main(){    int i, value, total;    printf("This program adds a list of ten numbers.\n");    total = 0;    for (i = 0; i < 10; i++) {        printf(" ? ");        value = GetInteger();        total += value;    }    printf("The total is %d\n", total);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -