Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- FILE * fStock;
- fStock = fopen("TSLA.txt" , "r");
- int count=0;
- if(fStock != NULL)
- {
- char singleLine [10];
- fgets(singleLine, 10, fStock);
- while("feof(fStock)" !=NULL);
- }
- {
- if(count==1);
- else(count++);
- int x1, y1, x2, y2;
- float slope;
- slope = ((1.0)* (y2 - y1)) / (x2 - x1);
- printf("Slope = %.2f\n", slope);
- fclose(fStock);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement