#include <stdio.h>
#include <stdlib.h>


int main() {
    char str[20];

    printf("정수 입력 : ");
    scanf("%s", str);
    printf("%d \n", atoi(str));
    
     printf("실수 입력 : ");
    scanf("%s", str);
    printf("%g \n", atof(str));
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: