Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #define tombmax 5
- #define stringmax 255
- void NeZarodjBe();
- int main (){
- int tomb[tombmax];
- int iloop = 0;
- for (; iloop < tombmax; iloop++){
- printf("%d. elem", iloop);
- scanf("%d", &tomb[iloop]);
- }
- printf("\n\n:::ELOTTE::: \n");
- for (iloop = 0; iloop < tombmax; iloop++){
- printf("%d, ", tomb[iloop]);
- }
- for (iloop = 0; iloop < tombmax; iloop++){
- int jloop = iloop+1;
- int min = iloop;
- for(; jloop < tombmax; jloop++){
- if (tomb[jloop] < tomb[min]){
- min = jloop;
- }
- }
- int saveme = tomb[iloop];
- tomb[iloop] = tomb[min];
- tomb[min] = saveme;
- }
- printf("\n\n:::UTANA::: \n");
- for (iloop = 0; iloop < tombmax; iloop++){
- printf("%d, ", tomb[iloop]);
- }
- NeZarodjBe();
- return 0;
- }
- void NeZarodjBe(){
- char ne[255];
- scanf("%s",ne);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement