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

What is an lvalue?

627


Why c is known as a mother language?

636


What is null in c?

596


Explain the difference between #include "..." And #include <...> In c?

622


What are the types of bitwise operator?

657






Why c is called free form language?

566


What is clrscr ()?

633


What are linked lists in c?

645


What are the advantages and disadvantages of c language?

556


What does main () mean in c?

609


What is the stack in c?

714


How can I remove the leading spaces from a string?

626


Why doesn't C support function overloading?

1607


What are the disadvantages of c language?

614


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1718