turbo c++

0 kazu lin · September 27, 2014
anyone can help me how to solve the problem?


#include <iostream.h>
#include <conio.h>


main()
{
    cout << "\nH\ne\nl\nl\no";
    cout<< "\n\t world!";
 
  getch();

}

output is; H
                e
                l
                l
                o
                       world!

the output is correct but when i run this again it always repeating what i mean the output is double and they said theres only one code can put in the code to not repeating the output... i hope u can help me thanks.

Post a Reply

Replies

Oldest  Newest  Rating
+1 Franz Schmidt · September 27, 2014
Try system("cls") 
(stdlib.h is needed)
  • 1

C

107,220 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator