Computer Science, asked by MOSFET01, 1 month ago

Write a c program with ‘if else’ statement which takes an input from user either ‘0’ or ‘1’. if input is '0' it prints 11111, if input is '1' it prints ‘00000’.​

Answers

Answered by samriddhasil297
0

Answer:

int main()

int A

if ( A = 0 )

print E ( "1111" )

else if ( A = 1 )

print F ( "00000" )

return 0;

Answered by prakharkalki
0

Explanation:

int a;

sopln (enter 0 or 1);

int a=in.nextInt();

if(a==o)

sopln( 111111);

else if (a==1)

sopln (0000);

else

Sopln(wrong choice);

}

}

Similar questions