program to print circle structure

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is the purpose of 'register' keyword in c language?

616


Why #include is used in c language?

598


Are the outer parentheses in return statements really optional?

575


What is the difference between test design and test case design?

1568


Can we declare a function inside a function in c?

584






Explain how do you list files in a directory?

618


What is the difference between fread and fwrite function?

640


What is a header file?

635


What is a built-in function in C?

795


How can I write functions that take a variable number of arguments?

626


What is difference between structure and union?

595


What is a wrapper function in c?

590


How do I get an accurate error status return from system on ms-dos?

649


Can we increase size of array in c?

542


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2303