Coding Question 20
The equation x2+y2=r2 represent a circle which centres at origin and radius is r. Write a program that read r from the keyboard and print the number of points with integer co-ordinate that lie on the circumference of the circle. #include<stdio.h> int main() { int x,y,r; printf("n Enter the radius:"); scanf("%d",&r); for(x=-r;x<=r;x++) { for(y=-r;y<=r;y++) […]