/* This is an example of string input */ #include <stdio.h> void main() { char big[25]; printf("Input a character string, up to 25 characters.\n"); printf("An X in string pos 0 causes the program to stop.\n"); do { scanf("%s",big); printf("The string is -> %s\n",big); } while (big[0] != 'X'); printf("End of program.\n"); }STRINGIN.C |
Κατεβάστε το πρόγραμμα στον υπολογιστή σας |