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 |
Are polymorphisms mutations?
what is graphics
what is difference between String s=new String("vali"); String s="vali"
What is a unary operator?
WAP find square root of any number (without using sqrt() )?
Write a macro for swapping integers
What are two types of polymorphism?
How Do you Code Composition and Aggregation in C++ ?
What is purpose of inheritance?
What is the main purpose of inheritance law?
What does and I oop and sksksk mean?
What is ambiguity in c++