Escolar Documentos
Profissional Documentos
Cultura Documentos
#include<stdio.h>
main(){
int l;
char vetor[2];
scanf("%d", &l);
scanf("%s", vetor);
scanf("%lf", &matriz[l][c]);
//}
if (vetor[0] == 'M'){
media = soma/12.0;
if (vetor[0] == 'S'){
printf("%.1lf\n", soma);
if (vetor[0] == 'M'){
printf("%.1lf\n", media);
return 0;
#include <stdio.h>
main(){
int coluna;
char vetor[2];
scanf("%d", &coluna);
scanf("%s", vetor);
scanf("%lf", &matriz[l][c]);
// if (vetor[0] == 'S'){
if (vetor[0] == 'M'){
Media = Soma/12.0;
if (vetor[0] == 'S'){
printf("%.1lf\n", Soma);
if (vetor[0] == 'M'){
printf("%.1lf\n", Media);
return 0;