Posts by Danilo de Maria • 11 points
2 posts
-
0
votes1
answer80
viewsA: Exercise Vectors, I’m stranded
First error, you’re reading the variable "temp" and you’re generating random number with it, and that’s not the goal. You have to read the user as long as it is != 0 you will generate numbers.…
-
1
votes1
answer92
viewsA: How to make an algorithm that receives the name of a day of the week and shows the subject that the student has on the day
Try to do it this way: #include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ char dia[50]; printf("Digite o dia da semana: \n"); scanf("%s",dia);…
canswered Danilo de Maria 11