The following C program was created by a student. Use it to answer the question that follows. # include <iostream.h>
float main() {
char str[50];
int i;
printf(“Enter a value :’);
scanf(“%s %f”,str, &i);
Printf(“\n You entered:%c %d”,str,i);
return 0;
}
Rewrite the program correctly.