Hi, welcome to my website Programming.OM. My name is Om prakash kartik. This blog helps you to learn programming languages concepts and technique.
Print following pattern
#include<stdio.h> #include<conio.h> int main() { int i,j; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { if(i%2==0) printf(" 0 "); else printf(" 1 "); } printf("\n"); } return 0; }
0 Comments