Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Program to print 0 to 9 in cross order

Answers were Sorted based on User's Feedback



Program to print 0 to 9 in cross order..

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

Program to print 0 to 9 in cross order..

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

Program to print 0 to 9 in cross order..

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

Post New Answer

More OOPS Interview Questions

Are polymorphisms mutations?

0 Answers  


what is graphics

0 Answers  


what is difference between String s=new String("vali"); String s="vali"

1 Answers  


What is a unary operator?

5 Answers  


WAP find square root of any number (without using sqrt() )?

3 Answers  


Write a macro for swapping integers

5 Answers  


What are two types of polymorphism?

0 Answers  


How Do you Code Composition and Aggregation in C++ ?

3 Answers   IBM, NET,


What is purpose of inheritance?

0 Answers  


What is the main purpose of inheritance law?

0 Answers  


What does and I oop and sksksk mean?

0 Answers  


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


Categories