This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
/*23) Escrever um algorimo que leia um valor em reais e chame uma função que calcule | |
o menor número possível de notas de R$100,00, R$50,00, R$20,00, R$10,00, R$5,00, R$2,00 e R$1,00 | |
em que o valor lido pode ser decomposto. Ignore os centavos. O algoritmo deve mostrar, na função main, o valor lido e a relação de notas necessárias.*/ | |
struct funcao{ | |
int cem, cinquenta, vinte, dez, cinco, dois; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
/*1) Escrever um algoritmo para ler 1000 profissionais em um vetor do tipo estrutura, contendo nome, data de nascimento | |
(dia, mês e ano - use estruturas aninhadas), idade e altura. | |
Uma vez cadastrados, este algoritmo deverá encontrar | |
e imprimir os dados do profissional --mais idoso, do mais novo, do mais alto e do mais baixo.-- */ | |
struct user{ | |
int dia, mes, ano; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
void troca(int *a, int *b); | |
void main(){ | |
int x, y; | |
printf("Insira dois números:\n"); | |
scanf("%d", &x); | |
getchar(); | |
scanf("%d", &y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
int i=0; | |
int func(int n, int *vet); | |
void main(){ | |
printf("Digite quanto valores tem o vetor: "); | |
int n; | |
scanf("%d", &n); | |
getchar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ApplicationCore.Configuration; | |
using ApplicationCore.Domain.Entities.Log; | |
using ApplicationCore.Domain.Interfaces.Database.Repositories; | |
using Infrastructure.Configuration; | |
using Infrastructure.Database; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Router } from 'express'; | |
import OrdersController from '../controllers/OrdersController'; | |
import { celebrate, Segments, Joi } from 'celebrate'; | |
const ordersRouter = Router(); | |
const ordersController = new OrdersController(); | |
ordersRouter.get('/:id?', ordersController.index); | |
ordersRouter.post( | |
'/', |