following is code for calculating circumference of circle.

  • code for circumference of circle:-

#include<iostream.h>
void main()
{
int r;
float c,pi;
pi=(float) 22/7;
r=8;
c=2*pi*r;
cout<<"circumference of circle is:"<<c;
}


note:-it's just a sudo code if its not executing on your device make some changes in the further code this is only for understanding logic.

thankyou for visiting us stay tuned for learning and more intresting u can ask questions in comment section check other blogs for more info. comment mail for compitative cading thankyou.👍😎🙏