#include <stdio.h>

void main( void )
{

 char c;
 int i;
 printf("input your choice:\n");
 scanf("%c",&c);
 while (c=='y')
 {
  printf( "\n\nEnter an int\n");
  scanf("%d",&i);
  printf("your input : %d\n",i);
  
  printf("input your choice:\n");
  scanf("%c",&c);

 }
}

结果:.......

input your choice:
y


Enter an int
12
your input : 12
input your choice:
Press any key to continue




相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-06-21
  • 2021-09-19
  • 2021-09-26
  • 2022-12-23
  • 2021-06-13
  • 2021-06-01
猜你喜欢
  • 2021-09-30
  • 2021-11-24
  • 2021-06-13
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案