can anybody help me to find the problem

plss help mee

#include<iostream.h>
#include<conio.h>
int main()
{int numri;
numri=1;
cout<<”ky program afishon \n”;
while (numri<=12)
{ cout<<numri <<” ”;
numri++;}
getch();
return0;}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<iostream>  // <-- dont use iostream.h it is old

int main()
{
	int numri;
	numri=1;
	std::cout << "ky program afishon \n";   // <-- cout belongs in the std namespace
	while (numri<=12)
	{ 
		std::cout<<numri <<" ";
		numri++;
	}

	return 0;
}


getch is a horrible way of pausing your program. take a look here:
http://www.cplusplus.com/forum/beginner/1988/
thnx man you saved my lifee
thankssssssssssssssssssssssssssssss
You're welcomeeeeeeeessssssssssssssssssssssss

edit:
my precioussssssssssssssssssssssssss
Last edited on
Topic archived. No new replies allowed.