Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- int main()
- {
- FILE *p = fopen("vlez.txt", "r");
- if(p==NULL)
- {
- printf("Nemoze da se otvori file-ot\n");
- return 0;
- }
- int a,b,c;
- fscanf(p,"%d%d%d",&a,&b,&c);
- int proizvod=a*b*c;
- FILE *o = fopen("proizvod.txt" , "w");
- if (o==NULL)
- {
- printf("Nemoze da se otvori file-ot\n");
- return 0;
- }
- fprintf(o,"%d" , proizvod);
- }
Advertisement
Add Comment
Please, Sign In to add comment