If true, it’s a Odd number and we output that number to the console window. Inside for loop, for every value of count, we check if its not perfectly divisible by 2. ![]() For each iteration of the for loop, count value increments by 1. If value of start is greater than the value of end, then we swap the values.įor loop counter is initialized to start, and for loop executes until value of count is less than or equal to end. The odd numbers are those numbers that are not completely. ![]() The C language has many types of header libraries which has supported function in them with the help of these files the programming is easy. ![]() In above c program, we ask the user to input 2 integer value and store it in variables start and end. In c programming, it is possible to take numerical input from the user and Print Odd Numbers in Array with the help of a very small amount of code.
0 Comments
Leave a Reply. |