Tuesday, 18 October 2011

example page 93 # 2

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

int main()
{
    int M, N, Z, H;
    M= 6;
    N= 0;
    for(H =1; H <= M; H++)
    {
          Z = 2 * H ;
          N = N + 3;
          p("H = %d\n", H);
          p("z = %d\n", Z);
          p("n = %d\n", N);
         
          }
          getch();
          return 0;
          }

0 comments:

Post a Comment