program to print circle structure



program to print circle structure..

Answer / sevak.yatrik777

#include<stdio.h>
#include<math.h>

int main(){
int ab, ord;
for(ab = -5; ab <= 5; ab++){
for(ord = -5; ord <= 5; ord++){
if(pow(ab,2)+pow(ord, 2)==25)
printf("+");
else
printf(" ");
}
printf("\n");
}
return 0;
}

Is This Answer Correct ?    18 Yes 7 No

Post New Answer

More C Interview Questions

Explain zero based addressing.

0 Answers  


Why do we need a structure?

0 Answers  


Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

0 Answers   Amazon,


What are data breakpoints?

3 Answers   Adobe,


We can draw a box in cprogram by using only one printf();& without using graphic.h header file?

4 Answers   NIIT,






What language is windows 1.0 written?

0 Answers  


What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

0 Answers  


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

0 Answers  


20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 Answers  


if we take a number as a char then can we manipulate(add, subtract) on this number

2 Answers  


int main() { int i=1; switch(i) { case '1': printf("hello"); break; case 1: printf("Hi"); break; case 49: printf("Good Morning"); break; } return 0; }

3 Answers  


Categories