write a program in c to print 2 integer, 2 float and 2 charater values
Answers
Answered by
0
Answer:
zbsnkakakxnndndkxkdmsndnfmdlsls
Answered by
1
Answer:
/* C program to Print Integer, Char, and Float value */
#include <stdio.h>
int main()
{
int Integer;
char Character;
float InputFloat;
printf(" Please Enter a Character : ");
scanf("%c", &Character);
printf(" Please Enter an Integer Value : ");
scanf("%d", &Integer);
printf(" Please Enter Float Value : ");
scanf("%f", &InputFloat);
printf(" \n The Integer Value that you Entered is : %d", Integer);
printf(" \n The Character that you Entered is : %c", Character);
printf(" \n The Float Value that you Entered is : %f", InputFloat);
printf(" \n The Float Value with precision 2 is : %.2f", InputFloat);
return 0;
}
Similar questions