Write
the output of the given program a-10; b-5; 0-3 print(al/c) printfac) print(a,b,c) printla"*2)
Answers
Answered by
1
Required Answer:-
Corrected C∅de:
a = 10
b = 5
c = 3
print(a/c)
print("ac")
print(a, b, c)
print("a"*2)
To Find:
- Output.
Output:
3.3333333333333335
ac
10 5 3
aa
Explanation:
- Lines 1, 2 and 3: Declares three variable a, b and c and initialises them with the values 10, 5 and 3.
- Line 4: print(a/c) prints the value of a/c which is equal to 10/3 = 3.3333... Output: 3.3333333333333335
- Line 5: It displays the string "ac". Output: ac
- Line 6: It displays the values of the three variables a, b and c with a space in between. Output: 10 5 3
- Line 7: It displays the string "a" repeated 2 times. Output: aa
Similar questions