#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k=0,l;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
k++;
printf("%d ",k%2);
}
for(l=i;l<=4;l++)
{
k++;
}
printf("\n");
}
getch();
}
import java.io.*; class floyd { public static void main(String args[]) { int i,j,k=0,l,n; system.out.println("enter the no of iteration is"+n); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { k++; a=k%2; system.out.println(""+a); } for(l=i;l<=n;l++) { k++; } system.out.println("\n") } }
#include<stdio.h> #include<conio.h> void main() { int i,j,k=0,l; clrscr(); for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { k++; printf("%d ",k%2); } for(l=i;l<=4;l++) { k++; } printf("\n"); } getch(); }
import java.io.*;class pattern{void main() throws IOException{int i,j;BufferedReader br=new BufferedReader(new InputStreamReader(System.in));System.out.print("Enter n terms");i=Integer.parseInt(br.readLine());for(i=1;i
#include <stdio.h> int main() { int i; for(i = 51; i <= 100; i+=2) printf("%d\n", i); return 0; }
5 = 101
#!/usr/bin/bash echo 1 01 101 0101 10101
100 1000 100 0001 101 0110 100 0101 100 0001 100 1110 100 1001 100 0011 100 0101 100 0100 100 0001 101 1001---------Binary Representation. 110 101 126 105 101 116 111 103 105 104 101 131.------Octal
Matrix? You seem to have misunderstood something.
0101 0011 = 101 0011. 3. Map the unsigned binary number's digits versus the corresponding powers of 2 that their place value represent: 26. 1. 25. 0. 24. 1. 23.
87
The address of the Haskell County Historical is: Po Box 101, Sublette, KS 67877-0101
The address of the Valley County Museum is: Po Box 101, Ord, NE 68862-0101
9 + 101 = 110
The address of the Port Townsend Aero Museum is: Po Box 101, Chimacum, WA 98325-0101
The address of the Worlds Largest Things Incorporated is: Po Box 101, Lucas, KS 67648-0101
The address of the Bradford Ohio Railroad Museum is: Po Box 101, Bradford, OH 45308-0101
The address of the Peter Dougherty Society is: Po Box 101, Old Mission, MI 49673-0101