Posts by Toshiyuki • 149 points
5 posts
-
2
votes2
answers1916
viewsQ: When generating a soup of letters with random letters how to place the words without matching?
I think I was explicit. It is given in a file. txt in the first line the grid size and then the words I should put in the generated letter soup. The problem is that when I get the soup the words…
-
1
votes1
answer258
viewsQ: after creating a file(.txt) iterate from a line that is not the beginning
The following I have an input file(.txt) which is the following: 9 branco preto azul verde rosa amarelo vermelho cinza lilas OHLEMREVU BBRANCOZA SRAMSUPAO AABAPOTZZ LNZROERNU IUIEPDOII LOLLORACA…
-
2
votes1
answer1940
viewsQ: Typeerror: can’t Multiply Sequence by non-int of type 'str'
My problem is this: when I go to execute the code of an exercise it gives me an error that I’m not understanding why it happens. Typeerror: can’t Multiply Sequence by non-int of type 'str' produtos…
-
3
votes1
answer268
viewsQ: Simplify code
I did a program, based on a study I read. The study says it takes 10,000 hours to become genius/master in any area. Can you simplify what I did? In the menu I could only do so, if you give me…
-
5
votes1
answer1532
viewsQ: How to calculate months of a year from a decimal number?
#include <stdio.h> #include <stdlib.h> int main() { printf("\tPrograma para saber quanto demora a tornar-se génio!\n\n"); float tempo(int horas); float converter(float x); int num_horas;…