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
What is abstraction with example?
What is purpose of inheritance?
What are the 5 oop principles?
What is a null tree?
to find out the minimum of two integer number of two different classes using friend function
How do you answer polymorphism?
Why do we use inheritance?
Why is static class not inherited?
Why do pointers exist?
What are oops methods?
Can an interface inherit a class?
What is class in oop with example?
Why do we use polymorphism in oops?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?