Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<malloc.h>
- #include<conio.h>
- #define TAM 20
- struct nodo{
- int dados;
- struct nodo *prox;
- };
- //Função principal
- int main(){
- struct nodo *ptri=NULL;
- int x,nro,maior;
- for(x=0;x<TAM;x++){
- nro=rand()%100; //função de sorteio
- }//fim do for
- printf("nn--- LSE ---nn");
- ImprimeLSE(&ptri);
- maior=PesquisaMaior(&ptri);
- printf("nn--- LSE - Maior = %i ---nn",maior);
- ImprimeLSE(&ptri);
- MultiplicaLSE(maior,&ptri);
- printf("nn--- LSE Multiplicado por %i ---nn",maior);
- ImprimeLSE(&ptri);
- getch();
- }//fim da função
Add Comment
Please, Sign In to add comment