0% found this document useful (0 votes)
25 views1 page

Q7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Q7

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#include <stdio.

h>
int main()
{
int a;
float b;
char chr;

printf("Enter an integer: \n");


scanf("%d", &a);
printf("Enter a float: \n");
scanf("%d", &b);
printf("Enter a character: \n");
scanf("%c", &chr);

printf("You entered:\n");
printf("%d\n", a);
printf("%f\n", b);
printf("%c\n", chr);
return 0;
}

You might also like