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 java.util.*; | |
public class idades { | |
public static void main(String [] x) { | |
int idade, qtdIdade=0, soma=0, maiorIdade=0, maior=0, i; | |
float media; | |
Scanner leia = new Scanner(System.in); | |
do{ | |
System.out.print ("Escreva a idade: "); | |
idade = leia.nextInt(); | |
qtdIdade++; |
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 java.util.Scanner; | |
public class vetor { | |
public static void main(String args []){ | |
Scanner entrada = new Scanner(System.in); | |
float[] num = new float[5]; | |
int i, qtd=0; | |
float soma=0, media, maior=num[0]; | |
System.out.print("\n\n******Vetor*******\n\n"); | |
for(i=0;i<5;i++) { |
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 java.util.*; | |
public class nomes { | |
public static void main(String [] x) { | |
String nome; | |
String b = "marcelo"; | |
int i, marcelo=0, novo; | |
Scanner ler = new Scanner(System.in); | |
for(i=0;i<10;i++){ | |
System.out.print("Digite o "+(i+1)+".o nome: "); | |
nome = ler.nextLine(); |
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<stdio.h> | |
int main(){ | |
int num[20], k, porc; | |
printf("Entre com uma sequência de 20 números:"); | |
for(k=1;k<=20;k++){ | |
printf("%d.o numero", k); | |
scanf("%d", &num[k-1]); | |
porc=5*k; | |
printf("Porcentagem: %d porcento ", porc); | |
} |
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 java.util.*; | |
public class matriz{ | |
public static void main(String[] args){ | |
int matriz[][] = new int [3][3]; | |
int i,j, soma1=0, soma2=0, pos=3; | |
Scanner leia = new Scanner(System.in); | |
System.out.print("Entre com os valores da matriz\n\n"); | |
for(i=0;i<3;i++){ | |
for(j=0;j<3;j++){ |
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
Algoritmo piSol { | |
//declaração de variáveis | |
int i = 0; | |
int nFunc = 4; // quantidade de registros de usuarios; | |
int statusLogin = 1; | |
int segueSis = 1; | |
String login[2]; | |
String username[4]; | |
String password[4]; |
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
Algoritmo piSol { | |
//declaração de variáveis | |
int i = 0; | |
int nFunc = 4; // quantidade de registros de usuarios; | |
int statusLogin = 1; | |
int segueSis = 1; | |
String login[2]; | |
String username[4]; | |
String password[4]; |