I can not find the problem of this code.......
I am now using Dev C++ editor for coding.
#include<iostraem.h>
#include<conio.h>
#include<stdio.h>
using namespace std;
int main(){
int k=1;
int m=0;
int p=5;
//int arry[];
int v=0;
int i=0,j=0;
cin>>i;
cin>>j;
for(int n=i;n<=j;n++,v++){
m=n;
while(n>1){
if(n%2!=0){
n=3*n+1;
}
else n=n/2;
k++;
cout<<n;
}
//for(int d=0;d<arry.length;d++)
// arry[v]=k;
n=m;
cout<<"Cycle="<<k;
k=1;
//System.out.println(" "+n+" ");
p++;
}
return 0;
}
Compiler errors are.....
\volum_1_1.cpp G:\G iostraem.h: No such file or directory.
16 G:\volum_1_1.cpp `cin' undeclared (first use this function)
27 G:\volum_1_1.cpp `cout' undeclared (first use this function)