Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by gfgfgf ( 13 years ago )
#include <stdio.h>

int main(){
 int n = 0;
 int tab[10];

 // Liczby do posortowania
 do {
 printf("Wprowadz liczbe elementow do posortowania <1 .. 10>: ");
 scanf("%d",&n);

 } while(n<=0);

 // Zapisanie danych do tablicy o danej wielkosci
 for(int i=0;i<n;i++){
 do {
  printf("Wprowadz liczbe [%d] = ", n);
  scanf("%d",&tab;[i]);
 } while(i<n);
 }

 // Wyprowadzenie danych
 sort();
 for(int i=0;i<n;i++){
  printf("Element [%d] = %d", i);
 }

}

 

Revise this Paste

Your Name: Code Language: