#include <stdio.h>
int main( void ) {
char nome[ 3 ] [ 30 ] ;
float valorPaciente[ 3 ] ;
printf ( "O valor da consulta e de R$ 450,00: \n " ) ; float valorTotal = 0 ;
int i;
for ( i = 0 ; i < 3 ; i++ ) {
printf ( "Digite o nome do paciente:" ) ; valorPaciente[ i] = 450.00 ;
valorTotal += valorPaciente[ i] ;
}
int qtdPaciente = i - 1 ; //precisa disto mes mo?
printf ( "A quantidade de pacientes particulas foi: %i \n " , qtdPaciente
) ; printf ( "o valor total de hoje foi: %.2f\n " , valorTotal
) ; }
//https://pt.stackoverflow.com/q/207789/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgljaGFyIG5vbWVbM11bMzBdOwoJZmxvYXQgdmFsb3JQYWNpZW50ZVszXTsKCXByaW50ZiAoIlBhcnRpY3VsYXI6XG4iKTsKCXByaW50ZigiTyB2YWxvciBkYSBjb25zdWx0YSBlIGRlIFIkIDQ1MCwwMDogXG4iKTsKCWZsb2F0IHZhbG9yVG90YWwgPSAwOwoJaW50IGk7Cglmb3IgKGkgPSAwOyBpIDwgMzsgaSsrKQl7CgkgICAgcHJpbnRmKCJEaWdpdGUgbyBub21lIGRvIHBhY2llbnRlOiIpOwoJICAgIHNjYW5mKCIlMzBzIiwgbm9tZVtpXSk7CgkgICAgdmFsb3JQYWNpZW50ZVtpXSA9IDQ1MC4wMDsKCSAgICB2YWxvclRvdGFsICs9IHZhbG9yUGFjaWVudGVbaV07Cgl9CglpbnQgcXRkUGFjaWVudGUgPSBpIC0gMTsgLy9wcmVjaXNhIGRpc3RvIG1lcyBtbz8KCXByaW50ZigiQSBxdWFudGlkYWRlIGRlIHBhY2llbnRlcyBwYXJ0aWN1bGFzIGZvaTogJWkgXG4iLCBxdGRQYWNpZW50ZSk7CglwcmludGYoIm8gdmFsb3IgdG90YWwgZGUgaG9qZSBmb2k6ICUuMmZcbiIsIHZhbG9yVG90YWwpOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yMDc3ODkvMTAx