Learn the use of break and continue statement using this c++ program. #include<iostream> #include<conio.h> using namespace std; int main() { int i; for(i=1;i<=10;i++) { if(i==4) { // 4 number is skipped. continue; } if(i==9) { // loop breaks and control goes out of for loop break; } cout<<i<<"\n"; } return 0; } Output 1 2 3 5 6 7 8
Google released their new smartphone called 'Google Pixel' in October, 2016.It comes with Android OS, v7.1 (Nougat). It has AMOLED touchscreen with 1080 x 1920 pixels resolution. It has 4GB RAM and 2770 mAh Li-Ion battery. It has 12 MP camera.
Q.1 What is the output of following program code (Assume header files already declared) ? for(i=0;i<=10;i++); { printf("%d",i); } Options A.0,1,2,3,......10 B.10 C.11 D.Compile time error View Answer