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
Explain force?
what is b tree
Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
What is the meaning of int p(char*a);
Key difference between ip10 and ip20 of ceragon equipment?
when air is supplied from larger diameter pipe with some pressure if change diameter to small pipe the pressure increases or not? also what is increased pressureor velocity?
how do we get persistent databases?
sir/medam i had completed my B-TECH(CSE)2011 with 61%.i have to go USA for futhure studies.i dnt know what is steps for do futhure studies in USA so could you please tell me
Explain how to share outlook calenders and the type of permissions you need to assign?
i want questions only on code part like general logics in c and java
how many clusters are generated by k-means algorithm?
What is the main difference between binary and counting semaphore?
what is difference between class and object in c++
What are the duties of QA/QC Coordinator
Briefly describe your ideal job?