DAY 1- DATA TYPE ON HACKER RANK
TASK--> Three variable i, d and s are already declared and initialized for you, you must. 1. Declare 3 variable : One of type int, one of type double, one of type string. 2. Read 3 line of input from stdin and intilized your 3 variable. 3. Use + operator to perform following operation. a.) Print sum of i plus your int variable on a new line. b.) Print sum of d Plus your double variable on a new line. c.) Concatenate S with the String you need as input & print the result on a new line. /*PROGRAM START FROM HERE -->*/ #define MAX_BUFFER 255 // Declare second integer, double, and String variables. int si; double dd; char *buff = malloc(MAX_BUFFER); if (buff == NULL) { printf("Memory error\n"); return 1; } // Read and save an integer, double, and String to your variables. if ( fgets(buff, MAX_BUFFER, stdin) != NULL ) { sscanf(buff, "%d", &si); printf("%d\n", i + ...