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
write program which accept information about 5 student & display same information according to ascending order of their name??
Discuss the various process operations, clearly stating what is involved in each process operation.
i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?
Reverse the link list without creating new list ?
WHAT IS THE PROPER LOCATION OF SAMPLE POINT OF LPG SPHERE TANK?
is built-in data-type are abstract data-types in java
what are the differences between malloc() and calloc() in c language?
Hi i want some previous interview questions and answers for KVB Bank.
how will u recieve an std idoc from sendor->reciever
Which one is more efficient in terms of required memory space call-by-value or call-by-referance?
i want to know how can i divide the bandwidth among two computers.say i have a connection of 256 kbps dsl connection. i have a switch.now i want to divide this 256 kbps in two 128,128 equal connections.so that both of us can work on our separate 128 speed
which type of casting enforces type safety
Hello everybody, I have applied for the AAI jr executive ATC exam. I am from CSE branch. Is Exam paper for the CSE and other branches same or not? Because I don't have knowlwdge on Electronic subject? Can any one please send me the previous exam papers for AAI Jr Executive of CSE branch My id is: naveen.kocherla@gmail.com Thanks and Regards Naveen
95) func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d ! ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); please help me in detail ....with flowchart
how do we calculate physical address if logical address is given in the question?