//计算一个人的生存时间
#include<stdio.h>
#include<stdlib.h>
int main()
{
int age;
printf("请输入你的年龄:\n");
scanf_s("&d", &age);
int second;
second = age * 3, 156 * 10 ^ 7;
printf("你活了%d秒\n", second);
getchar();
system("pause");
return 0;
#include<stdio.h>
#include<stdlib.h>
int main()
{
int age;
printf("请输入你的年龄:\n");
scanf_s("&d", &age);
int second;
second = age * 3, 156 * 10 ^ 7;
printf("你活了%d秒\n", second);
getchar();
system("pause");
return 0;
}
希望最后我能够吧时间库函数加进去,变成可变的时间。。。。
后期会进行修改。。。敬请期待