/* Write a program that asks upper limit from user, goes through each odd number under given limit and prints square for each of those numbers. If upper limit is lower than 10, program will tell user that job is too easy, and sets upper limit to 10. */ #include using namespace std; int main(void) { int luku; cout << "Anna ylä-raja jonne asti neliön: " ; //kysytään käyttäjältä luku cin >> luku; if (luku < 10){ // jos luku on pienempi kuin 10, asetetaan ylä-rajaksi 10 cout << "Liian helppoa, nostan ylä-rajan 10" << endl; luku = 10; } for(int i=0; i < luku; i=i+2){ //pyöritään silmukassa niin, että i kasvaa joka kierroksella kahdella cout << i*i <