agrego practicas
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
int main(void){
|
||||
int c, count = 0, countbr = 0;
|
||||
|
||||
while((c = getchar()) != EOF){
|
||||
if(c == '\n'){
|
||||
countbr++;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
fprintf(stdout, "Se leyeron %d bytes\n", count);
|
||||
fprintf(stdout, "Se leyeron %d <br> \n", countbr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user