intheearliestwritingtherewerenospacebetweenwordsandnopunctationeitherthatcanberatherdifficulttoread
the.mesha.stele.is.the.earliest.known.writing.with.any.punctuation
Computer programmers love punctuation marks. The C and Java
programming
languages have special meaning for almost every special character
on the keyboard. The only excepts are `, @,
$ and _, though _ is often
treated as a letter.
#include <stdio.h>
#include <stdlib.h>
/*
* A program example from CSCI 255
*/
int main(int argc, char** argv) {
int count, num ;
puts("Enter a number") ;
scanf("%d", &num) ;
count = 0 ;
while (num != 1) {
printf("%8d\n", num) ;
if (num%2==0) {
num = num/2 ;
} else {
num = 3*num + 1 ;
}
++count ;
}
printf("%8d\n\n", num) ;
printf("iterations: %d\n", count) ;
return (EXIT_SUCCESS);
}