Computer Science, asked by PurvaReddy, 1 month ago

draw a flowchart to print "all the best" 10 times

Answers

Answered by bharatpatadia74
0

The idea of this program is to decide whether the natural number entered by the user is odd or even. For this program, you will use modulus operation. Where if you divide a number by 2 and the result is zero remainder then it is even else if it has a remainder it is odd. #include main() { int a; printf("Enter an integer "); scanf("%d",&a); if ( n%2 == 0 ) printf("Even "); else printf("Odd "); return 0; }

Attachments:
Similar questions