Program to print 0 to 9 in cross order
Answers were Sorted based on User's Feedback
Answer / james
#include<iostream.h>
int main()
{
for(int i=0;i<=9;i++)
{
for (int j = 0; j <=i; j++)
cout << " ";
cout << i << endl;
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / kalyan chukka
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,j;
clrscr();
for(i=0;i<=9;i++)
{
for(j=1;j<=i;j++)
{
printf(" ");
}
printf("%d\n ",i);
}
getch();
}
Check in windows Environment
| Is This Answer Correct ? | 0 Yes | 4 No |
what is difference between objects and function
Can you explain polymorphism?
Why do we use virtual functions?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
What is the difference between C++ and java?
What does it mean when someone says I oop?
What is polymorphism ? Explain with examples
What is oops in programming?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Whats is abstraction in oops?
What are the three main types of variables?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }