C程序将一个数字转换为字符串

C程序将一个数字转换为字符串

Input: User will put some numeric value say 42.26 Output: This program will return the string equivalent result of that number like "42.26"

算法

Step 1: Take a number from the user Step 2: Create an empty string buffer to store result Step 3: Use sprintf() to convert number to string Step 4: End登录后复制