This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
/* | |
F=1,8C + 32 | |
*/ | |
void main() { | |
float soma=0; | |
int valorInicial, valorFinal, contador; | |
printf("Digite o valor da temperatura inicial: \n"); |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
int main () { | |
float notas[10]; | |
int indice; | |
printf("Lendo as notas:\n"); | |
for (indice = 0; indice < 10; indice++) | |
{ |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
void main() { | |
float nota, soma = 0, media; | |
int resp, contador = 0; | |
do { | |
printf("Digita a nota: "); | |
scanf("%f", ¬a); |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
int main () { | |
/* declaracoes */ | |
int num; /* variavel utilizada para leitura da sequencia */ | |
int quad; | |
/* programa */ | |
printf("Digite uma sequencia terminada por zero\n"); |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
/* | |
F=1,8C + 32 | |
*/ | |
void main() { | |
float soma=0; | |
int valorInicial, valorFinal, contador; | |
printf("Digite o valor da temperatura inicial: \n"); |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
void main() { | |
float nota, soma=0, media; | |
int conta; | |
for (conta = 0; conta <= 9; conta++) { | |
printf("Digite a nota: "); | |
scanf("%f", ¬a); |
This file contains hidden or 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
void main() { | |
float salario; | |
char temFilhos; | |
printf("Digite o salario atual do funcionario: "); | |
scanf("%f", &salario); | |
printf("\nVoce possui Filhos? Digite 'S' ou 'N': "); | |
scanf(" %c", &temFilhos); |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
// declaração de variáveis | |
int contador; | |
float nota1, nota2, nota3, media; | |
for (contador = 0; contador < 3; contador ++) { | |
This file contains hidden or 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<stdio.h> | |
#include<math.h> | |
int main() | |
{ | |
int numero; | |
printf("Entre com um numero inteiro: "); | |
scanf("%d",&numero); | |
if (((numero % 3)==0) && ((numero % 5)==0)){ |
This file contains hidden or 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
ALTER TABLE dbatez.rec_filial drop COLUMN pk_rec_filial; | |
ALTER TABLE dbatez.rec_filial ADD COLUMN pk_rec_filial bigserial UNIQUE; | |
ALTER TABLE dbatez.rec_filial ALTER COLUMN pk_rec_filial SET NOT NULL; | |
ALTER TABLE dbatez.rec_filial ALTER COLUMN pk_rec_filial SET DEFAULT nextval('dbatez.rec_filial_pk_rec_filial_seq'::regclass); | |
update dbatez.REC_FILIAL set pk_rec_filial = pk_rec_filial; | |
-- passar o ultimo elementro da sequence | |
select max(pk_rec_filial) from dbatez.rec_filial; |