📌  相关文章
📜  如果数字是正数并计算总和和平均值 o - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:18.399000             🧑  作者: Mango

代码示例1
#include

int main(){
    //1
    int total;
    int i;

    //2
    int positiveSum = 0;
    int negativeSum = 0;

    //3
    printf("How many numbers you want to add : ");
    scanf("%d",&total);

    //4
    int numbers[total];

    //5
    for(i=0; i