Make a fundamental basic note for my C Programming that I am allow to use in the exam room. I know nothing about programming. the note takes one side of A4. I repeat it, I know nothing about programming.

profileBob_Usher
sortingnumbers2.c

#include <stdio.h> int main() { int list[10], temp, swap, f; printf("enter 10 numbers you want to sort\n"); for (f=0;f<10;f++) scanf("%d", &list[f]); while(1) { swap=0; for(f=0;f<9;f++) { if(list[f]>list[f+1]) { temp=list[f]; list[f]=list[f+1]; list[f+1]=temp; swap=1; } } if (swap==0) break; } printf("sorted list is\n"); for(f=0;f<10;f++) printf("%d\n",list[f]); }