Tuesday, 18 October 2011

example page 93 # 4

#include<stdio.h>
#include<conio.h>
#define s scanf
#define p printf

int main()
{
          int x, y , z, t, a;
         
          x= 1; y= 2; z= 3;
          for (a= 1; a <4; a++)
          {
              z=z+x;
              x=y+z;
              t=z;
              z=y;
              y=x;
              x=t;
              p("%d%d%d\n",x,y,z);
              }
              getch();
              return 0;
              }

0 comments:

Post a Comment