Program to print 0 to 9 in cross order

Answer Posted / aakash dang

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

void main()
{
int x,y;
x=1,y=1;

for(int i=0;i<=9;i++)
{
cout<<i;
gotoxy(x,y);
x++;
y++;
}
getch();
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and example?

594


What is oops and why we use oops?

573


What are the two different types of polymorphism?

672


Why do we use polymorphism?

579


2. Give the different notations for the class.\

1594






is there any choice in opting subjects like 4 out of 7

1733


What are constructors in oop?

598


What is object-oriented programming? Webopedia definition

727


What is overriding in oops?

606


Where You Can Use Interface in your Project

1429


What does and I oop and sksksk mean?

654


How does polymorphism work?

635


What are the benefits of interface?

583


Whats oop mean?

599


What are the advantages of polymorphism?

577