S.No Coding a = 15 b= 10 c =b% a if c> 10: print(“TRUE") else: 1 print("FALSE") s,c =0,4 while c<12: print(c, end=" ") S=s+c c=c+2 print("\nAnswer:",s) for j in range(0,30,3): if j==12: continue else: 3 print(j,end=" ") print("\nSCT") def display(): print("UTAS") def displayNumber(n1, n2): if nl >n2: 4 return n1 * n2 else: return nl - n2 def remarks(number): if number>10: return "SCT";: else: return "HCT": display() print("Output 1\t:",displayNumber(8,5)) print("Output2\t:",remarks(displayNumber(10,5)) a = 20 b= 20 c =b% a if c> 10: a+=5 else: b+=3 print(a) print(b) c=0 6 for x in range(5): c+=1

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 34SA
icon
Related questions
Question
100%
Just answer please without explanation please ??
5. Write the output of the following given programs…**
4*0.5=2
S.No Coding
Output
a = 15
b= 10
c =b% a
if c> 10:
print(“TRUE")
else:
1
print("FALSE")
s,c =0,4
while c<12:
print(c, end=" ")
2
s=s+c
c=c+2
print("\nAnswer:",s)
for j in range(0,30,3):
if j==12:
continue
3
else:
print(j,end=" ")
print("\nSCT")
def display():
print("UTAS")
def displayNumber(n1, n2):
if nl > n2:
4
return n1 * n2
else:
return n1 - n2
def remarks(number):
if number>10:
return "SCT":
else:
return "HCT":
display()
print("Output 1\t:",displayNumber(8,5))
print("Output2\t:",remarks(displayNumber(10,5))
a = 20
b= 20
c = b % a
if c> 10:
a+=5
else:
b+=3
print(a)
print(b)
c=0
for x in range(5):
c+=1
Transcribed Image Text:5. Write the output of the following given programs…** 4*0.5=2 S.No Coding Output a = 15 b= 10 c =b% a if c> 10: print(“TRUE") else: 1 print("FALSE") s,c =0,4 while c<12: print(c, end=" ") 2 s=s+c c=c+2 print("\nAnswer:",s) for j in range(0,30,3): if j==12: continue 3 else: print(j,end=" ") print("\nSCT") def display(): print("UTAS") def displayNumber(n1, n2): if nl > n2: 4 return n1 * n2 else: return n1 - n2 def remarks(number): if number>10: return "SCT": else: return "HCT": display() print("Output 1\t:",displayNumber(8,5)) print("Output2\t:",remarks(displayNumber(10,5)) a = 20 b= 20 c = b % a if c> 10: a+=5 else: b+=3 print(a) print(b) c=0 for x in range(5): c+=1
Expert Solution
steps

Step by step

Solved in 3 steps with 11 images

Blurred answer
Knowledge Booster
SQL Functions
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