Monday, November 5, 2012

Modul_Vi : Equation of straight line

Dear!Teacher, In this time i had been upload a new video how to write 2 dimensional represent 100 point in linear function Y = 2X - 3 and this is my link http://youtu.be/o1NC2ds-DbU .
Source code :


#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int x,y;
char point[100][100]= {"",""};
printf ("This is equation staight line y = 2x -3\n");
for (x=0;x<100;++x)
{
y = 2 * x - 3;
printf ("point x = %d and point y = %d \n",x,y);
}
system ("pause");
return 0;
}


Thanks for watching
Name : Phirum Tan
Major : Tiknik Media Digital

No comments:

Post a Comment