famouscoder

Wednesday, May 6, 2020

URI 1002 - Area of a Circle

#include<stdio.h>
int main()
{
    double R,A;
    scanf("%lf",&R);
    A = 3.14159 * (R*R);
    printf("A=%.4lf\n",A);

    return 0;
}

Posted by giniouscoder at 12:09 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

URI 1001 - Extremely Basic

#include<stdio.h>
int main()
{
   int A,B,X ;
   scanf("%d %d",&A,&B);
   X=A+B;
   printf("X = %d\n",X);
   return (0);
}
Posted by giniouscoder at 12:09 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Home
Subscribe to: Posts (Atom)

About Me

giniouscoder
View my complete profile

Blog Archive

  • ▼  2020 (10)
    • ▼  May (10)
      • URI 1010 - Simple Calculate
      • URI 1009 - Salary with Bonus
      • URI 1008 - Salary
      • URI 1007 - Difference
      • URI 1006 - Average 2
      • URI 1005 - Average 1
      • URI 1004 - Simple Product
      • URI 1003 - Simple Sum
      • URI 1002 - Area of a Circle
      • URI 1001 - Extremely Basic
Simple theme. Powered by Blogger.