Write a C Language Program to find odd number in the rang of 1 to 10 and show result Please Help
Answers
Answered by
0
Please check description image
Attachments:
Answered by
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
Hindi,
3 months ago
Biology,
3 months ago
Biology,
7 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago