#include<stdio.h>
int main()
{
int a;
int b;
printf("enter the first number a\n");
scanf("%d", &a);
printf("enter the second number b\n");
scanf("%d", &b);
printf("the answer is %d\n", a*b);
return 0;
}
// project:_4 (multiplication)
// yearly sip calculator based on simple intrest
// enter sip capital amount
// enter the number of years
// your captital will be
// enter the rate of intrest
// your return will be & retuen % will be
#include <stdio.h>
int main ()
{
int c,t,r;
printf ("enter SIP capital amount: ");
scanf ("%d", &c);
printf ("enter the number of years: ");
scanf ("%d", &t);
printf ("enter the rate of intrest: ");
scanf ("%d", &r);
printf ("your return amount will be: %d\n",((c*t*12*r)/100));
printf ("your final value will be: %d",((c*t*12)+(c*t*12*r)/100));
return 0;
}
output:_
enter SIP capital amount: 1000
enter the number of years: 1
enter the rate of intrest: 10
your return amount will be: 1200
your final value will be: 13200
No comments:
Post a Comment
here we are to help you.you can watch videos and get information about :- (1) scientific facts (2) education (3) gaming (4) music (5) lyrics (6) cartoons and many more.So keep watching keep learning, thank you.