I'm not sure what to do, but I do not know what to do, but I do not know what to do. to do in C.
"Develop a C program that receives a day of the week and shows which course (s) you have on that day of the week"
I'm not sure what to do, but I do not know what to do, but I do not know what to do. to do in C.
"Develop a C program that receives a day of the week and shows which course (s) you have on that day of the week"
Try to do this:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char dia[50];
printf("Digite o dia da semana: \n");
scanf("%s",dia);
if(strcmp(dia,"segunda") == 0){
printf("\nEh segunda!");
}else{
printf("\nNao eh segunda!");
}
return 0;
}