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...

Given a passport size photo draw vertical and horizontal lines
and mark the intersection points(assume one for the photo and
zero for the background).Give the intersection points(1 or 0)
to program and print "." for input 1.

Answer Posted / raveathul farzaana.m.y

#include<stdio.h>
#include<conio.h>
void main()
{
int p[50][50],rows,columns;
clrscr();
for(rows=1;rows<=50;rows++)
{
for(columns=1;columns<=50;columns++)
{
printf("\nEnter the value of row%d column%d:",rows,columns);
scanf("%d",&p[rows][columns]);
}}
for(rows=1;rows<=50;rows++)
{
for(columns=1;columns<=50;columns++)
{
if(p[rows][columns]==1)
printf(".");
else
printf(" ");
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to convert postfix notation into prefix in data structures. please send me algo of taha

3140


What is spooling and buffering?

1778


how convert the spiral model to prototype model ?

1780


What is the mistake in the following program segment ? f() { int a; void c; f2(&c,&a);}

3935


what is the difference between oracle 8i vs 9i

2284


safety valve calculation?

2619


write a program to reverse a string using recursive function without using str functions.

2592


i want questions only on code part like general logics in c and java

1884


i have an interview in Qatar Petroleum. So please provide the all details abt safety management

2070


I am 2012 pass out b tech student(cse). i have recently started software manual testing class. Is this field is benefitial for me in future?

2139


what are differences between composition and inheritance in c

1602


difference between w2k and win xp....

1840


Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.

2095


What do you mean by component versionig?

1985


Is printf(?%d?,p); valid?

2110