Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- FILE *fw;
- int i;
- float x, pom;
- fw = fopen("nasobky.txt", "w");
- scanf ("%f", &x);
- for(i = 1; i <= 10; i++){
- pom = i * x;
- fprintf (fw, "%d * %.2f = %.2f\n", i, x, pom);
- }
- fclose(fw);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement