#include<stdio.h> #include<stdlib.h> int main() { char str; int count=1; int start=1; while(1) { printf("input your line\n"); do { scanf("%c",&str); if(start==1) { printf("%d.",count); start=0; } printf("%c",str); }while(str!=‘\n‘); start=1; count++; }
时间: 2024-10-31 01:45:14