Hey dude don't leave tell a mod bout it they'll fix everything up for you.
Answer:
/*
I don't know what language you're using, so I'll write it in javascript which is usually legible enough.
*/
console.log(buildSequence(30));
function buildSequence(maxVal){
maxVal = Math.abs(maxVal);
var n, list = [];
for(n = 1; n < maxVal; n++){
/*
to check for odd numbers, we only need to know if the last bit
is a 1 or 0:
*/
if(n & 1){ // <-- note the binary &, as opposed to the logical &&
list[list.length] = n;
}else{
list[list.length] = -n;
}
}
return list.implode(',');
}
Computer - Input Devices
Keyboard.
Mouse.
Joy Stick.
Light pen.
Track Ball.
Scanner.
Graphic Tablet.
Microphone.
Computer - Output Devices
Monitor.
Printer.
Headphones.
Computer Speakers.
Projector.
GPS.
Sound Card.
Video Card.
Answer:
Yes
Explanation:
The teacher always answers all queries if she/he is online and the question u ask is understandable