Need assitance for a task.
Posted: Mon Jan 24, 2011 1:18 pm
Good evening! I am a rookie in both programming and particularly in Cobra language. I would be very grateful if you answer my aks for help. Could you write me how this code will look like in Cobra?
- Task: Input an integer number n and output the sum: 1+2^2+3^2+...+n^2. Use input validation for n to be positive.
I would like to ask you to give me some clarity on this topics as well:
1. Basic Control Flow (conditional and loop statements)
2. Functions - syntax, writing and using functions, example
3. Arrays - syntax, definition, example
Just basic overlook because I'm really stuck and I have to make a review for Cobra. Sorry for bothering you and Thank you very much!
- Task: Input an integer number n and output the sum: 1+2^2+3^2+...+n^2. Use input validation for n to be positive.
I would like to ask you to give me some clarity on this topics as well:
1. Basic Control Flow (conditional and loop statements)
2. Functions - syntax, writing and using functions, example
3. Arrays - syntax, definition, example
Just basic overlook because I'm really stuck and I have to make a review for Cobra. Sorry for bothering you and Thank you very much!