Write a cpp program to display interger from 21 to 30 except 24 and 26
Answers
Answered by
1
Answer:
#include<iostream.h>
void main()
{
int i;
for(i=21;i<=30;i++)
{
if(i!=24 &&i!=26)
cout<<i<<" ";
}
}
Similar questions