// CONVERSTION D'UNE CHAINE DE CARACTERE MINISCULE AU MAJUSCULE // AVEC "toupper()" #include <stdio.h> #include <ctype.h> int main () { int i = 0; char c; char str[100]; printf("Ecrire votre chaine: "); gets(str); printf("La chaine en MAJISCULE: "); while(str[i]) { putchar (toupper(str[i])); i++; } return(0); } // fb.com/www.mathet.info
في حل السابق من دون استخدام toupper() (حل اخر) :
خوارزمية / برنامج لتحويل سلسلة نصية من حروف صغيرة الى حروف كبيرة