Skip to content

Instantly share code, notes, and snippets.

@SCI-COPATH
Created November 24, 2019 10:21
Show Gist options
  • Save SCI-COPATH/909918e434e95a3d1e96e3d2a2c173ea to your computer and use it in GitHub Desktop.
Save SCI-COPATH/909918e434e95a3d1e96e3d2a2c173ea to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <conio.h>
void main()
{
int num;
float fnum;
char letter;
double number;
clrscr();
printf("Enter a integer\n");
scanf("%d",&num);
printf("Enter a floating point\n");
scanf("%f",&fnum);
printf("Enter a charator\n");
scanf("%c",&letter);
printf("Enter a integer\n");
scanf("%lf",&number);
printf("\n The number is\n");
printf("%d \t %f \t %c \t %lf \t",num,fnum,letter,number);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment