All pastes #460775 Raw Edit

Unnamed

public text v1 · immutable
#460775 ·published 2007-04-27 08:36 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

float uMajuscule;

int main ()
{
	int chaine[50];
	printf("Entrez un texte : ");
	gets(chaine);
	printf("Il y a %f U majuscules.",uMajuscule(chaine));

printf("\n\n");
system("PAUSE");
return 0;
}

float uMajuscule (float x)
{
	int u, i;
	for (i = 0, x[i] != '\0', i++)
	{
		if x[i] == 'U'
			u++;
	}
	return u;
}