Write a program to print all the numbers from 1 to 75 using WHILE-WEND.
Answers
Answered by
0
Answer:
1.FIRST
int main()
{
int i=0;
while(i<100)
{
i+=2;
printf("%d ",i);
}
return 0;
}
2.second
int main()
{
int i=0;
while(1)
{
i+=2;
printf("%d ",i);
if(i>=100)
break;
}
return 0;
}
3.Third
int main()
{
int i=0;
while(1)
{
i++;
if(i%2!=0)
continue;
printf("%d ",i);
if(i>=100)
break;
}
return 0;
}
4.Forth
int main()
{
int i=0;
while(i<=100)
{
if(i%2==0)
printf("%d ",i);
i++;
}
return 0;
}
Explanation:
Plsmark as brainliest bro
Similar questions