Join Regular Classroom : Visit ClassroomTech

c interview questions

program to generates all combinations of 1,2 and 3 using for loop – Coding Question 6

Write a program to generates all combinations of 1,2 and 3 using for loop. #include<stdio.h> int main() { int i,j,k,z=1; printf("n All the combinations are as follows: "); for(i=1;i<=3;i++) for(j=1;j<=3;j++) for(k=1;k<=3;k++) printf("n%02d. %d %d %d",z++,i,j,k); return 0; } Join Our Telegram Group Visit our Facebook Page Coding Questions Coding Question :  Write a complete C

program to generates all combinations of 1,2 and 3 using for loop – Coding Question 6 Read More »