Programação e Desenvolvimento

Projetos, softwares, sites, blogs e trabalhos conforme sua necessidade e com os melhores preços.
Tecnologia do Blogger.

Text Widget

Search (Don't Edit)

Sample Text

Colaboradores

Formulir Kontak

Nome

E-mail *

Mensagem *

Full-Width Version (true/false)

Flickr

Arquivo do blog

Facebook

Translate

Video of the Day

Slider (Add Label Name Here!) (Documentation Required)

Teste Teste Teste

Know us

Teste Teste Teste Teste

Popular Posts

Featured


11 de jul. de 2016

Exercício em C, digite um nome , calcule e mostre quantas letras tem.

Exercício em C, digite um nome , calcule e mostre quantas letras tem.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main()
{
 int x,tam;
 char nome[30];
 for (x=1; x <= 4; x++)
 {
 printf("Digite um nome: ");
 gets(nome);
 // na variavel tam ficará guardado quantas letras tem o nome
 tam = strlen(nome);
 printf("\nEsse nome tem %d\ letras.\n\n",tam);
 }
 printf("\n\n");
 system("pause");
 return 0;
}
Trabalhos.:
E-mail: mvf5system@gmail.com
Blog: http://mvf5-system.blogspot.com.br/
Facebook: https://www.facebook.com/mvf5systems

Exercício em C, Ler nome, endereço, telefone e imprimir.

Exercício em C, Ler nome, endereço, telefone e imprimir.

#include <stdio.h>
#include <stdlib.h>
int main()
{
 char nome[30], endereco[30], telefone[15];
 printf("Informe seu nome: ");
 gets(nome);
 printf("Informe seu endereco: ");
 gets(endereco);
 printf("Informe seu telefone: ");
 gets(telefone);
 printf("\n\nNome: %s\n\n",nome);
 printf("Endereco: %s\n\n",endereco);
 printf("Telefone: %s\n\n",telefone);
 system("PAUSE");
 return 0;
}

Trabalhos.:
E-mail: mvf5system@gmail.com
Blog: http://mvf5-system.blogspot.com.br/
Facebook: https://www.facebook.com/mvf5systems

Exercício em C, escrever seu nome na tela 10 vezes. Um nome por linha.

Exercício em C, escrever seu nome na tela 10 vezes. Um nome por linha.

#include <stdio.h>
main()
{
 int x;
 for (x=1;x <=10; x++)
 printf("\nMvf5system@gmail.com ");
 printf("\n");
 system("pause");
 return 0;
 }
Trabalhos.:
E-mail: mvf5system@gmail.com
Blog: http://mvf5-system.blogspot.com.br/
Facebook: https://www.facebook.com/mvf5systems

Exercício em C, receber um nome e imprimir as letras na posição impar;

Exercício em C, receber um nome e imprimir as letras na posição impar;

#include <string.h>
#include <stdio.h>
main()
{
 int pp=1,tam,x;
 char APELIDO[100];
 printf ("Informe um apelido:");
 gets(APELIDO);
 tam=strlen(APELIDO);
 printf("\nAs letras na posicao impar sao: ",x);
 while(pp<=tam-1)
 {
 printf(" %c ",APELIDO[pp]);
 pp=pp+2;
 }
 printf ("\n");
 printf("\n\tNome digitado: %s\t",APELIDO);
 printf ("\n\n");
 system("PAUSE");
 return 0;
}
Trabalhos.:
E-mail: mvf5system@gmail.com
Blog: http://mvf5-system.blogspot.com.br/
Facebook: https://www.facebook.com/mvf5systems

31 de jan. de 2016

O menor valor contido na matriz e sua posição

Escrever um algoritmo em C para ler uma matriz (7,4) contendo valores inteiros (supor que os valores são distintos). Após, encontrar o menor valor contido na matriz e sua posição.


#include <stdio.h>
#include <stdlib.h>

main(){

int x, y, mat[7][4], menor = 0, pX =0, pY = 0;


for(x = 0; x< 7; x++){
for(y = 0; y < 4; y++){
printf("Linha [%d] - coluna [%d]", x+1, y+1);
scanf("%d",&mat[x][y]);
if(x == 0 && y == 0){
menor = mat[x][y];
}
else{
if(mat[x][y] < menor){
menor = mat[x][y];
pX = x;
pY = y;
}
}
}
}
printf("\nMenor numero: %d", menor);
printf("\nPosicao: Linha: %d - Coluna: %d", pX+1, pY+1);
    system("pause -> null");

}
Trabalhos.:
E-mail: mvf5system@gmail.com
Blog: http://mvf5-system.blogspot.com.br/
Facebook: https://www.facebook.com/mvf5systems

Postagem em destaque

MVF5 System - SOLUÇÕES EM TI!

          Desenvolvimento de projetos, softwares, sites, blogs e trabalhos conforme sua necessidade e com os melhores preços. Entre em c...

Seguidores

Total de visualizações

Postagens populares