Home

Login to publish a problem!


Zadatak 3 – Da li je broj “topao”? Broj je “topao” ako je u intervalu [20, 30]. Unesi broj → ispiši "topao" ili "hladan"

3 months ago

Solutions
#include <iostream>
using namespace std;

int main() {
    int x; cin >> x;
    if (x >= 20 && x <= 30) cout << "topao";
    else cout << "hladan";
}
3 months ago

Korisnik unese riječ. Snaga riječi = zbir ASCII vrijednosti svih karaktera.

3 months ago

Solutions
#include <iostream>
using namespace std;

int main() {
    string s; cin >> s;
    int sum = 0;
    for(char c : s) sum += int(c);
    cout << sum;
}
3 months ago

Korisnik unese broj minuta, program ispisuje koliko je to sati i minuta.

3 months ago

Solutions
#include <iostream>
using namespace std;

int main() {
    int m; cin >> m;
    int h = m / 60;
    int r = m % 60;
    cout << h << "h " << r << "min";
}
3 months ago

Napisi string 'Programiranje' unazad.

5 months ago

Solutions
Vuk
cout << "ejnarimargorp";
3 months ago

pomnozi brojeve 2 i 5 u c++

6 months ago

Solutions
a = 2 * 5
cout << a
6 months ago
cout << 2 * 5;
6 months ago
a = 2;
b = 5;
c = a * b;
cout << c;
3 months ago