Questions tagged as 'else'

1
answer

Css in conditional (only with JQuery)

I'm trying to put the color inside the conditional, but I can not. PS: There are three different colors and it can only be done with JQuery. <script> var qtd; $(function () { $("#btn1").click(cadastrarDados); $("#...
asked by 22.10.2017 / 22:57
1
answer

Read Integer in Java

I have an exercise in Java where the program should read two numbers typed by the user and he should tell me which one is the greatest! In this case, you can not use only IF , right? Should I also use ELSE ? Yes they are ex...
asked by 02.06.2018 / 01:23
2
answers

Language C - The structure jumps directly to ELSE by ignoring IF parameters [duplicate]

#include<stdio.h> int main(){ //Escolhe entre nome do personagem e classe int p,c; printf("RPG teste\n"); printf("Digite um nome para o seu(a) personagem:"); scanf("%s",&p); printf("Escolha uma classe, digi...
asked by 23.09.2018 / 04:55
1
answer

Why does not print return all items in a list?

The following code should return all cars from the following list: cars = ['audi','bmw','subaru','toyota'] for car in cars: if car == 'bmw': print(car.upper()) else: print(car.title()) But just returned: BMW Toyota What'...
asked by 12.06.2018 / 02:37