
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Sir Prachur Sharma took this quiz in class of Programming for Engineers course at Bhagwant University Rajasthan. It includes: Nested, Loop, Display, Output, Program, Integer, Loop, Repetition, Conditional, Statement, Nested
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

#include <iostream.h> void main() { // int a[4]; //for (int i=0;i<8;i++) // { for (int j=0;j<10;j++) { if (j<6) { for (int k=0;k<j;k++) { cout<<k; } cout<<endl; } else { for (int l=0;l<10-j;l++) { cout<<l; } cout<<endl; } } // } }