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

wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


Is a house a mass structure?

0 Answers  


find second largest element in array w/o using sorting techniques? use onle one for loop.

15 Answers   BitWise, Zycus Infotech,


What is the use of pointers in C?

0 Answers   Impetus, Motorola, Tavant Technologies, Virtusa,


How can I write a function analogous to scanf?

0 Answers  


Why can’t constant values be used to define an array’s initial size?

0 Answers  


What are preprocessor directives in c?

0 Answers  


Here is a good puzzle: how do you write a program which produces its own source code as output?

0 Answers  


What is the best organizational structure?

0 Answers  


how to find the sizof of any datatype using bit manipulations

3 Answers  


What is the difference between malloc() and calloc()?

3 Answers  


write a program to generate 1st n fibonacci prime number

12 Answers  


Categories