c coding language want solution of you know then only answer or wrong answer will be reported
Attachments:
Answers
Answered by
1
Answer:
C program for first 20 odd numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int n=20,i;
clrscr();
for(i=1;i<=n;i++)
{
if((i%2)!=0)
{
printf("%d\n",i);
}
}
getch();
}
C program for first 20 even numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int n=20,i;
clrscr();
printf("
for(i=1;i<=n;i++)
{
if((i%2)==0)
{
printf("%d\n",i);
}
}
getch();
}
Similar questions
English,
1 month ago
History,
3 months ago
Math,
10 months ago
Social Sciences,
10 months ago
Hindi,
10 months ago