[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Pine and sendmail (further news)
Stephen
>Some days it was `(sigh) You're back already?' for variety.
>When I quit from X I have Arnie saying "I'll be back".
1: /* SENDMAIL.C - - Demonstrates use of an array ? */
2:
3: #include <stdio.h>
4:
5: /*declare an array to hold to show sendmail variables, and a date
dependant function*/
6:
7: float complaint [13] ;
8: int count;
9:
10: main()
11: {
12: /* input data from keyboard into array */
13:
14: for (count = 1; count < 13; count ++)
15: {
16: printf("Enter your complaint for day %d: ", count);
17: scanf ("%f", &complaint [count] ) ;
18: }
19:
20: /* Print array contents */
21:
22: for (count = 1 ; count <13 ; count ++)
23: {
24: printf ( *\ nDay %d = $%.2f" , count , complaints [count ] ) ;
25: }
26: }
This is a bit crude but I'm sure that I'll do better eventually ?
Thanks
Richard
Sheffield UK
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.