the problem is the output doesn’t show “3.14”, it just shows nothing…
#include <stdio.h>
int main() {
char grade = 'A';
char compliment[] = "nice work";
char decimalNumber = 3.14;
printf("your grade is %c n", grade);
printf("%s n", compliment);
printf("%i", decimalNumber);
}
New contributor
caeryllium is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1