Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ program to print odd numbers using loop

/*Q:Use Loops to print odd ids of employees from 1 to
19.*/
#include<iostream>
using namespace std;
int main()
{
int a;
for(a=1;a<=19;a+=2)
{
cout<<"Employee Id's= "<<a<<endl;
}
 
PREVIOUS NEXT
Tagged: #program #print #odd #numbers #loop
ADD COMMENT
Topic
Name
1+6 =