0 votes
104 views
in C programming by (98.9k points)
edited
C Program for Input/Output of Integer, Character and Floating point numbers

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
#include <stdio.h>
#include <conio.h>
 
int main(){
    int inputInteger;
    char inputCharacter;
    float inputFloat;
  printf("Enter an Integer, Character and Floating point number\n");
    scanf("%d %c %f", &inputInteger, &inputCharacter,
        &inputFloat);
     
    printf("\nInteger you entered is : %d", inputInteger);
    printf("\nCharacter you entered is : %c", inputCharacter);
    printf("\nFloating point number you entered is : %f",
        inputFloat);
     
    getch();
    return 0;
}

 

Related questions

0 votes
1 answer 200 views
0 votes
1 answer 124 views
0 votes
1 answer 883 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 312 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...