7. i = True j = False k = False if not i orj: print('z') elif not i or not j and k: print('w') elif not i or j or not j and i: print('x') else : print('y') 8. for x in range (2): for y in range (2): print(x, y, sep='-', end = '" 9. for i in range (1,7): for j in range(i): t = i*j/2+1 print(t)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
icon
Concept explainers
Question

Please send me answer of all the parts immediately and i will give you like sure sir 

7. i = True
j = False
k = False
if not i orj:
print('z')
elif not i or not j and k:
print('w')
elif not i or j or not j and i:
print('x')
else:
print('y')
8. for x in range (2):
for y in range (2):
print(x, y, sep='-', end = '"
9. for i in range (1, 7) :
for j in range(i):
t = i*j/2+1
print(t)
Transcribed Image Text:7. i = True j = False k = False if not i orj: print('z') elif not i or not j and k: print('w') elif not i or j or not j and i: print('x') else: print('y') 8. for x in range (2): for y in range (2): print(x, y, sep='-', end = '" 9. for i in range (1, 7) : for j in range(i): t = i*j/2+1 print(t)
10. i = 128
a, b, c = 0,0,0
Ľ
if i%16 == 0 or i//6-2 == 0:
a = 2
if i%4 == 0 and i//4+2 == 18:
b = 4
else:
c=6
print(a+b+c)
11. a = 'Python'
b = 'Java'
c ='NodeJS'
print(f'Hello, {b+c) and {a}')
12. v = 1+1 // 2+1/2+2(1
print(v)
Transcribed Image Text:10. i = 128 a, b, c = 0,0,0 Ľ if i%16 == 0 or i//6-2 == 0: a = 2 if i%4 == 0 and i//4+2 == 18: b = 4 else: c=6 print(a+b+c) 11. a = 'Python' b = 'Java' c ='NodeJS' print(f'Hello, {b+c) and {a}') 12. v = 1+1 // 2+1/2+2(1 print(v)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 5 images

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr