To find perimeter of a rectangle
Topics Covered:
- To read amount in Nepalese currency and convert that into Indian currency
- To reads amount in Nepalese currency and convert it into American and Australian dollar
- to read American and Australian dollar and convert into Nepalese rupees
- To find perimeter of a rectangle
//to read amount in nepalese currency and convert that into indian currency
#include<conio.h>
#include<stdio.h>
int main()
{
float nr,ic;
printf(“enter amount in nepalese currency”);
scanf(“%f”,&nr);
ic=nr/1.6;
printf(“indian curency=%f”,ic);
return 0;
}
//to reads amount in nepalese currency and convert it into american and australian dollar
#include<conio.h>
#include<stdio.h>
int main()
{
float nr,usd,aud;
printf(“enter amount in nepalese rupees”);
scanf(“%f”,&nr);
usd=nr/110;
aud=nr/82;
printf(“us=$%f\n”,usd);
printf(“aus=$%f”,aud);
return 0;
}
//to read american and australian dollar and convert into nepalese rupees
#include<conio.h>
#include<stdio.h>
int main()
{
int usd,ausd,nra,nrau;
printf(“enter amount in american dollar”);
scanf(“%d”,&usd);
nra=usd*110;
printf(“enter amount in australian dollar”);
scanf(“%d”,&ausd);
nrau=ausd*82;
printf(“american dollar in nepalese rupees=%d\n”,nra);
printf(“australian dollar in nepalese rupees=%d”,nrau);
return 0;
}
//to find perimeter of a rectangle
#include<conio.h>
#include<stdio.h>
int main()
{
float l,b,p;
printf(“enter the length and breadh”);
scanf(“%f%f”,&l,&b);
p=2*(l+b);
printf(“perimeter=%.2f”,c);
return 0;
}