Problema Programación
Problema Programación
Problema Programación
#include <stdio.h>
#define MAX 6
void show(int matrix[][MAX]);
int matrix[MAX][MAX];
llenar_esperilicamente(matrix);
show(matrix);
return 0;
int i,j;
printf("%4d", matrix[i][j]);
printf("\n");
int i, j;
int count = 1;
count++;
matrix[j][aux] = count;
count++;
matrix[aux][j] = count;
count++;
aux--;
matrix[j][MAX-(aux+2)] = count;
count++;
}
#include "stdio.h"
#include "conio.h"
int main(){
int color;
double c,f;
scanf("%d",&color);
if(color<=4){
scanf("%lf",&c);
switch(color){
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
printf("Total: %lf",c);
break;
getch();
}
scanf("%d",&c);
if(c==1){
p=3800;
scanf("%d",&e);
scanf("%d",&a);
if((e<20)&&(a>=2)){
z=(p+(p*0.25));
if((e<20)&&(a<2)){
p=(p+(p*0.25));
p=(p+(p*0.25));
if((30>=e<=20)&&(a>=2)){
z=(p+(p*0.10));
if((30>=e<=20)&&(a<2)){
p=(p+(p*0.10));
p=(p+(p*0.10));
if(c==2){
p=4340;
scanf("%d",&e);
scanf("%d",&a);
if((e<20)&&(a>=2)){
z=(p+(p*0.25));
if((e<20)&&(a<2)){
p=(p+(p*0.25));
p=(p+(p*0.25));
break;
}
}