Untitled

mail@pastecode.io avatar
unknown
c_cpp
a month ago
299 B
1
Indexable
Never
// Online C compiler to run C program online
#include <stdio.h>

int main() {
    char stringa[11]; //10 caraterri + '\0'
    
    
    printf("Inserisci una stringa (max 10 caratteri): ");
    fgets(stringa, sizeof(stringa), stdin);
    
    printf("Hai inserito: %s\n", stringa);


    return 0;
}
Leave a Comment