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 the importance of c in your views?

807


Can i use “int” data type to store the value 32768? Why?

967


How to write c functions that modify head pointer of a linked list?

737


What is c basic?

885


Is c still relevant?

845


How many levels deep can include files be nested?

874


How can I implement sets or arrays of bits?

803


What is scanf () in c?

831


What are volatile variables in c?

695


What does node * mean?

956


Explain the difference between malloc() and calloc() in c?

807


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1751


What is the difference between array_name and &array_name?

991


What are lookup tables in c?

756


Linked lists -- can you tell me how to check whether a linked list is circular?

849