Posts by fvsgamers • 13 points
3 posts
-
0
votes1
answer31
viewsQ: How to read a file in C but not to count with the header in the counter?
FILING CABINET The first line is the header I want to disregard. So that the counter "num" does not start counting from the HEADER Company About Funcao Name Empresaa Bedecs Anna Proprietario…
-
0
votes2
answers1521
viewsQ: Test for prime number
#include <stdio.h> #include <stdlib.h> #include <locale.h> int main(void){ setlocale(LC_CTYPE,""); int num; int divisor = 2; int primo = 1; // se primo = 1 é primo // se for primo…
-
-5
votes1
answer47
viewsQ: Is there any more beautiful way for me to change the numbers?
This is my code: #include <stdio.h> #include <stdlib.h> #include <locale.h> #include <unistd.h> #define tam 20 int main (void){ setlocale(LC_CTYPE, ""); int num[tam]; int…