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
how to convert postfix notation into prefix in data structures. please send me algo of taha
What is spooling and buffering?
how convert the spiral model to prototype model ?
What is the mistake in the following program segment ? f() { int a; void c; f2(&c,&a);}
what is the difference between oracle 8i vs 9i
safety valve calculation?
write a program to reverse a string using recursive function without using str functions.
i want questions only on code part like general logics in c and java
i have an interview in Qatar Petroleum. So please provide the all details abt safety management
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?
what are differences between composition and inheritance in c
difference between w2k and win xp....
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.
What do you mean by component versionig?
Is printf(?%d?,p); valid?