repl.it
C

C Programming by www.gammal.tech

fork
loading
Files
  • main.c
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
int main(void) {
  int age;
  float hight;
  char gender;
  printf("How old are you? ");
  scanf("%d",&age);
  printf("How tall are you? ");
  scanf("%f",&hight);
  printf("What's your gender? ");
  scanf("\n%c",&gender);

  printf("(%d,%f,%c)\n",age,hight,gender);
  return 0;
}
Fetching token
?