Computer Science, asked by mansoorkhan40233, 8 months ago

Write a C Language Program to find odd number in the rang of 1 to 10 and show result Please Help​

Answers

Answered by raj1990600
0
Please check description image
Attachments:
Answered by sanish
1

Answer:

I hope the program runs on your compiler, I use Dev C++.

#include<stdio.h>

#include<conio.h>

int main( )

{

int i;

printf("Odd numbers in range 1 to 10 are : \n");

for(i=1;i<=10;i++)

{

if(i%2!=0)

{

printf("%d \n",i);

}

}

return 0;

}

(Output in the attachment).

Hope that helps : )

Attachments:
Similar questions