Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Ejercicios propuestos.
1.
#include <stdio.h>
#include <conio.h>
int main()
{
int a=5, b=3, c=10, d=55;
c=a+b*b-6;
d=c-10%4*3/6;
b=b*d+c;
b=15;
printf("%d\n%d\n%d\n%d\n", a, b, c, d);
getch();
return 0;
}
a: 5
b: 15
c: 8
d: 7
2.
#include <stdio.h>
#include <conio.h>
#define M 3
int main()
{
int a=5, b=8, c;
c=4*a%b;
c=c-M;
b=a+c-M;
a=b*M;
printf("%d\n%d\n%d\n",a,b,c);
getch();
return 0;
}
a: 9
b:3
c:1
3.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a=5, b=3, c=10, d=55;
c=a+b*b-6;
d=c-10%4*3/6;
b=b*d+c;
b=15;
printf("%d\n%d\n%d\n%d\n",a,b,c,d);
return 0;
}
a:5
b:15
c:8
d:7
4.
#include <stdio.h>
#include <stdlib.h>
#define M 3
int main()
{
int a=5, b=8, c;
c=4*a%b;
c=c-M;
b=a+c-M;
a=b*M;
printf("%d\n%d\n%d\n",a,b,c);
return 0;
}
a:9
b:3
c:1