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 Dynamic Polymorphism?
What is multiple inheritance? Give Example
what is the drawback of classical methods in oops?
Why interface is used?
how do you handle yourself when you feel the wald is aganist you
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Plese get me a perfect C++ program for railway/airway reservation with all details.
c++ is a purely oop concept?
what is data abstraction with example.
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
What is inheritance and how many types of inheritance?
How do you define social class?