Blog Do Geisson
Aqui você ira aprender tudo sobre algoritimos em linguagem C e C++
Pages
Home
Algorítimos em Linguagem C
Thursday, June 16, 2011
Algorítimos em Linguagem C
//1) Elabore um programa em C/C++ que entre com 7 números inteiros e imprima uma listagem contendo os 7
//números.
#include
#include
#include
main()
{
int num[7],i;
for(i=0; i<7; i++){
printf("Digite o numero%d: ",i);
scanf("%d",&num[i]);
}
for(i=0; i<7; i++){
printf("O numero %d digitado e:%d\n",i,num[i]);
}
getch();
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment