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
English,
4 months ago
Math,
4 months ago
English,
4 months ago
Biology,
8 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago