对int类型变量和输出结果进行数学计算

#include stdio.h#include stdlib.hint main(){int contributed;int received;contributed = 65 - 19;

编程学习网为您整理以下代码实例,主要实现:对int类型变量和输出结果进行数学计算,希望可以帮到各位朋友。

#include <stdio.h>
#include <stdlib.h>
int main()
{
   int contributed;
   int received;
   contributed = 65 - 19;
   received = 969 - 65;
   printf("for %i years.\n", contributed);
   printf("for %i years.\n", received);
   return(0);
}
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐