Posts by user24100 • 41 points
2 posts
-
0
votes2
answers145
viewsA: printf does not show the expected value
If you want to enter the hours first you should receive the hours for example int main(){ int horas; printf("Digite as horas: "); scanf("%d", &horas); // Depois devolve o valor lido através de…
-
4
votes4
answers14347
viewsA: How to take a String value before a Special character
You can use the function StringTokenizer contained in java.lang.Object For example: public class Demonstracao{ public static void main(String[] args){ // Cria um StringTokenizer passando como…