0% found this document useful (0 votes)
5 views1 page

Program

Uploaded by

jawee3829
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Program

Uploaded by

jawee3829
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

#include<stdio.

h>

int main()

int a,b,add,sub,mul,div;

printf("Enter first number ");

scanf("%d",&a);

printf("Enter second number ");

scanf("%d",&b);

add=a+b;

sub=a-b;

mul=a*b;

div=b/a;

printf("Addittion : %d\n",add);

printf("Subtraction : %d\n",sub);

printf("Multiplication: %d\n",mul);

printf("Division : %d\n",div);

#include<stdio.h>

int main()

float r,s,pi=3.14,area1,area2,perimeter1,perimeter2;

printf("Enter Radius ");

scanf("%f",&r);

area1=pi*r*r;

perimeter1=2*pi*r;

printf("Enter side ");

scanf("%f",&s);

area2=s*s;

perimeter2=4*s;

printf("Area of Circle %f \n",area1);

printf("Perimeter of Circle %f \n",perimeter1);

printf("Area of Square %f \n",area2);

printf("Perimeter of Square %f \n",perimeter2);

You might also like