#Meta-Wlp: #Macro: TITLE wlp: Learn C (II) p. 4
(count += 2)is equivalent to the expression
(count = count + 2)The logical operators are often used to control program flow and termination, such as in the control portion of a while statement. Examples of logical operators are ==, equality testing, and <, less-than testing.
#include<stdio.h> int main(){ int count ; count = 1 ; printf("It's as easy as") ; while ( count<5 ) { printf(" %d", count ) ; count *= 2 ; } printf("!\n") ; }How is the output of this program different than the output of the previous program. #Shuffle: none $PAGE$-A $PAGE$-B $PAGE$-C Return to Learn C Introduction #: This program counts to 4. #: The count starts at 0. #: This program does not put commas between the numbers. #: