Long time no see
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int ch,r;
|
||||
r = 0;
|
||||
printf("Print something:\n");
|
||||
while((ch = getchar()) != '#'){
|
||||
if(ch == '!'){r++;putchar('!');putchar('!');}
|
||||
else if(ch == '.'){r++;putchar('!');}
|
||||
else putchar(ch);
|
||||
}
|
||||
printf("\nr: %d",r);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user