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
can u perform addition of two octal numbers using java?
How to write test cases for Auditing in Health care Applications?
How to work Air cooled and water cooled chiller?
what is the Relationship between quantity of Gas and capacity of AC machine in tonnage.
how can i write a program in c of SPARCE MATRIX(data structure)?
5S training documents
what two ways you can use to ensure that visual basic does not allow uncleared variables?
reduce the number of key strokes to execute this command : t char -t -v -f/dev/fd0
hi friends i am b-tech in computer science having interview of State bank of india clerk day on 30 th april. I want to know the answer of question:"you r B.tech in C.S. why do u want to become a bank clerk?" please help.Its my humble request.
what is your experience with computer-aided design software.
whether we can implement VPN based on UDP? If yes then tell how? If no tell why not?
What were the most energizing/enjoyable aspects of your job in this given period?
synchronous and asynchronous transmission
what should i say in the interview if interviewer asks me "why did you choose IT instead of your core group?"
how strcpy usingrecursive function