skip to main |
skip to sidebar
Example no. 2, page 92 output
#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