assignment queries
Title
Question
where to run code and how to submit assignment ?
Advanced-Cpp Classes-And-Objects 05-06 min 0-10 sec
Answers:
Dear User,
Please go through the Instruction Sheet thoroughly. Please follow all the steps and then begin with the video. Here is the link-
https://spoken-tutorial.org/media/videos/44/Advanced-Cpp-Instruction-Sheet-English.pdf
https://spoken-tutorial.org/media/videos/44/Advanced-Cpp-Instruction-Sheet-English.pdf
Assignments are only for self-assessment. You don't have to submit the assignments anywhere.
#include <stdio.h>
#define PI 3.14f
void main()
{
float radius, perimeter, area;
printf("Enter radius of the Circle:\n");
scanf("%f", & radius);
perimeter = 2 * PI * radius;
printf("Perimeter of the circle: %0.4f\n", perimeter);
area = PI * radius * radius;
Printf("Area of circle: %0.4f\n", area);
}
Http://spoken tutorial.org/ media/video/44/advance CPP instructions sheet English.pdf
#include <stdio.h>
#define PI 3.14f
int main()
{
float radius, perimeter, area;
printf("Enter radius of the Circle:\n");
scanf("%f", &radius);
perimeter = 2 * PI * radius;
printf("Perimeter of the circle: %0.4f\n", perimeter);
area = PI * radius * radius;
printf("Area of circle: %0.4f\n", area);
return 0;
}
Login to add comment