Handwritten Style Notes
Q1: Use of continue statement:
→ The continue statement skips the remaining code inside a loop and moves to the next
iteration.
Q2: Entry vs Exit Control Loop:
→ Entry control: Condition checked first (e.g., while, for).
→ Exit control: Condition checked after execution (e.g., do-while).
Q3: Armstrong Number Program (C):
int num, rem, sum=0, temp;
printf("Enter a number:");
scanf("%d", #);
temp=num;
while(temp!=0){ rem=temp%10; sum+=rem*rem*rem; temp/=10; }
if(sum==num) printf("Armstrong"); else printf("Not Armstrong");