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

prog for 1st five prime numbers in 2^x - 1

0 Answers  


how to print "hai" in c?

13 Answers   TCS,


What will be your course of action for a push operation?

0 Answers  


How can I change the size of the dynamically allocated array?

0 Answers  


Explain what is the benefit of using enum to declare a constant?

0 Answers  






if p is a string contained in a string?

0 Answers  


2. Write a function called hms_to_secs() that takes three int values&#8212;for hours, minutes, and seconds&#8212;as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


Differentiate between new and malloc(), delete and free() ?

0 Answers   iNautix,


Explain in detail how strset (string handling function works )pls explain it with an example.

1 Answers  


what is the main use of c where it can use the c

2 Answers   Infosys,


what is real time system?what is the differance between hard and soft real time systems

2 Answers  


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

0 Answers  


Categories