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 |
What is NULL pointer?
WAP to convert text into its ASCII Code and also write a function to decode the text given?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Which is better pointer or array?
Why isn't any of this standardized in c? Any real program has to do some of these things.
enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }
What do you mean by recursion in c?
What are static functions?
Can you return null in c?
What is adt in c programming?
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
Write a code to remove duplicates in a string.