1.

Write a programme to find 5 odd numbers

Answer» #include Void main(){int i,n;cout<<"enter the range";cin>>n;for(i=0;i<=n;i++)if(i%2==1)Cout<<"the odd no. are"<
Pehle ek loop chalao...and then check the condition whether the modulus of the no. Is equal to 1 or. Not....and then print it..


Discussion

No Comment Found