Page not loading? Try clicking here.
Placeholder

#611

String 2 - Self Assessment 10 1s - MB

Problems

Write a program that receives a single string of at most 20 characters as input.

  • On the first line, convert it to an integer, double the value, and print it.

  • On the next line, convert it to a floating-point number, round it, and print it to two decimal places.


Example

50.1*34
100

50.10

Source

자기주도C언어프로그래밍

You must sign in to write code.