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
Who invented bcpl language?
Explain modulus operator.
What is meant by gets in c?
Is main is user defined function?
What are the difference between a free-standing and a hosted environment?
What is 2c dna?
I came across some code that puts a (void) cast before each call to printf. Why?
How can I find the modification date of a file?
Can a function argument have default value?
explain what is fifo?
What is typedef struct in c?
write a program to display all prime numbers
What is calloc in c?
What is a null string in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10