Commit f2eaa3f3 by rallui

Upload New File

parent 6616bb5b
Showing with 64 additions and 0 deletions
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#define m 5 //maatriksi tulpade arv
//funktsioonide prototüübid
void GeneeriMassiiv(int n, int M[n][m]);
void RidadeSort(int n, int Massiiv[n][m]);
void PrintMassiiv(int n, int A[n][m]);
float ArvutaReakeskmine(int a, int b, int c);
void ArvutaLoppTulemus(int n, int A[n][m], float T[n]);
void PrintLoppTulemus(int n, float A[n]);
int main(void)
{
}while(arv<0 || arv>15)
GenereeriMassiiv(arv, Tulemused);
PrintMassiiv(arv, Tulemused);
RidadeSort(arv, Tulemused);
printf("\n \n");
ArvutaLoppTulemus(arv, Tulemused, Yldarvestus);
printf("\n");
PrintLoppTulemus(arv, Yldarvestus);
return 0;
}
void GeneeriMassiiv(int n, int M[n][m]);
{
for(i=0, i<n, i++);
{
for(j=0, j<15, j++);
{
Massiiv[i][j]= rand()% RandSize;
printf("|%d|", Massiiv[i][j]);
)
printf("\n");
}
}
}
void PrintMassiiv(int n; int A[n][m])
{
int i, j;
for(i=0, i<n, i++);
{
for(j=0, j<15, j++);
{
printf("|%d|", Massiiv[i][j]);
)
printf("\n");
}
}
}
void RidadeSort(int n, int Massiiv[n][m]);
{
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment