predict the output of these questions... plzzzz
Home
/
Computer Science
/
predict the output of these questions... plzzzz
predict the output of these questions... plzzzz
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
1) 1st one all the numbers inside the array [1,2,6,9,0] are sum with s value one by one starts from 0+1 and goes on.at last it prints the else loop as the sum is 18
2) 2nd one syntax error: invalid syntax @line number 4 if n%d<>0:
Correct Syntax:
If n%d<0 and n%d >0: