Computer Science, asked by ruchitiwari871, 3 months ago

Draw a flowchart to find the sum of first 15 numbers

Answers

Answered by hareeshmahant111
0

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; }

Similar questions