All pastes #909452 Raw Edit

Something

public text v1 · immutable
·published 2008-02-19 03:55 UTC
rendered paste body
/***************************************
 * G-Unot                              *
 * word.c                              *
 * Purpose sorts words alphabetically  *
 *                                     *
 * ************************************/

#include <stdio.h> 

int main()
{
	char line[200];
	// Words to be read 
	char word1[20];
	char word2[20];
	char word3[20];
	char word4[20];
	char word5[20];
	char word6[20];
	char word7[20];
	char word8[20];
	char word9[20];
	char word10[20];

	// Ask for 10 words
	printf("Please enter 10 words max to be sorted alphabetically\n");
	fgets(line, sizeof(line), stdin);
	sscanf(line, "%s %s %s %s %s %s %s %s %s %s", &word1, &word2, &word3, &word4, &word5, &word6, &word7, &word8, &word9, &word10);

	

	return 0;
}