Sunteți pe pagina 1din 2

#include<stdio.

h>
int main (void)
{int x,y,z;
x=5;
y=7;
z=x+y;
printf("%d",z);
getchar();
return 0;
}

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main(void)
{float sp,a,b,c;
printf("Enter the sales price=");
scanf("%f",sp);
printf("Enter the no. of years=");
scanf("%f",a);
printf("Enter decrease rate=");
scanf("%f",b);
c=sp*pow((1-b/100),a);
printf("New sales price is %f",c);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
main(void)
{float sp,a,b,c,d;
printf("Enter the number=");
scanf("%f",sp);
printf("Enter the first ratio=");
scanf("%f",a);
printf("Enter second ratio=");
scanf("%f",b);
c=sp*(1-a/100);
d=c*(1-b/100);
printf("New value is %f",d);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
main(void)
{
printf("Enter the number=");
printf("Enter the first ratio=");
}
#include<stdio.h>
#include<conio.h>

main(void)
{
printf("Enter the number=");
printf("Enter the first\n r\t\t\t\tatio=");
}

S-ar putea să vă placă și