# C语言每日一题 Day 1 荧妹好感队

***

> lhy版权所有 禁止转载
>
> 知识点：程序结构 变量

***

## 题目描述

假设我的荧妹好感队中角色的技能倍率都是100%，输入荧妹、香菱、神子、琴团长的面板攻击力，求这个队伍每人打一下能造成的总伤害。

## 输出

四个整数，分别表示荧妹、香菱、神子、琴团长的攻击力。

## 输出

一个整数，即这四个人的攻击力之和。

## 输出输出样例

### 输入

```
1600 1300 1700 1300
```

### 输出

```
5900
```

***

## 回答要求

* 附上你完成本题的完整代码
* 哪部分是对库的引用？哪部分是主函数？
* 什么是C语言中的函数？
* 什么是变量？
* C语言中，用什么函数进行输入/输出？

```c
#include<stdio.h>
声明对库的引用，这里引用输入输出的库stdio.h
int main(){ 声明主函数，包括int（返回值类型） main（函数名）和()（括号内是参数列表，这里没有参数）
    程序的具体内容在函数内部实现
    int a,b,c,d,e;  声明5个int（整数）类型的变量
    scanf("%d %d %d %d",&a,&b,&c,&d);
    e = a+b+c+d;
    printf("%d",e);
    return 0; 返回0表示程序正常结束
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.mcyou.cc/c++-mei-ri-yi-ti/c-mei-ri-yi-ti-day1-ying-mei-hao-gan-dui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
