Problem : https://hack.codingblocks.com/app/contests/1499/1519/problem
Solution : https://ide.codingblocks.com/s/286008
How to print leading zeros as shown in output of sample testcase ?
Problem : https://hack.codingblocks.com/app/contests/1499/1519/problem
Solution : https://ide.codingblocks.com/s/286008
How to print leading zeros as shown in output of sample testcase ?
hello @vaishnavtannu
for printing trailing zeros,
u should use setprecision function.
here is the syntax
cout << fixed << setprecision(x) << value u want to print
x=how many decimal places u want