Sure. You can write any string, containing or not-containing semicolons (or commas, full stops etc).
On the other hand, you cannot write programs without statements, and you have to terminate statements with semicolon.
If you forget the semicolon, your program won't compile.
Let's say your string is a variable called "string" To print out all the characters in order, you would do: for i in string: print(string[i]) If you wanted to print out characters up to a point (n = maximum characters): for i in range(n): print(string[i]) hope this helps!
sdfdg
Use the following:awk 'END { print NR }'Awk will count the lines and print it out.
You can turn them off in the options when printing. Check out the options section.
public class welcome { public static void main (String args[]) { System.out.println("Welcome to Java programming"); } } There are also many "Hello World" tutorials you can find elsewhere on the internet
For(int I = 0: I < 5; i++) { System.out.println(" print this " + I ); }
14 agate lines
Printer driver
#includeint main(){static int ROWS = 6;char ch;printf("Please enter an UPPERCASE letter:");scanf("%c",&ch);for( int row = 0; row < ROWS; ++row ){// Print padding.for( int column = 1; column < ROWS - row; ++column)printf(" ");// Print letters left of centre.for( int letter = row; letter >= 1; --letter)printf("%c", ch);// Print centre letter.printf("%c", ch);// print letters right of centre.for( int letter = row; letter >= 1; --letter)printf("%c", ch);printf("\n");}return( 0 );}
You can not print your name in C without a semi colon because according to the rules of C every statement should end with a semi colon.In fact without the semi colon it fails to be a valid C statement.
it will print nothing on commandline..