|
- #include <iostream>
- using namespace std;
- int a,b,c,i,s;
- int main()
- {
- cout<<"\n=========T13=======\n";
- a=b=1;
- for (i=3; i<=10; i++)
- {
- c=a+b;
- cout<<c<<' ';
- a=b;
- b=c;
- }
- cout<<"\n=========T14=======\n";
- a=-1;
- for (i=1; i<=10; i++)
- {
- a=a*(-1);
- s=a*i;
- cout<<s<<' ';
- }
- cout<<"\n=========T15=======\n";
- for (char ch='A'; ch<='Z'; ch++) cout<<ch<<' ';
- }
复制代码 |
|