Run ID:58696
提交时间:2023-09-29 16:30:22
#include<iostream> //1、头文件 using namespace std; //2、命名空间 int main(){ //3、主函数 int yt=1,xt=0,ct=0; int a,b,c; for(int i=1;i<=8;i++){ a = yt; b = xt; c = ct; yt = b+c; xt = a; ct = b+c; } cout<<yt<<' '<<xt<<' '<<ct; return 0; }