CrazyEngineers
  • How to find the total rent in given program

    Mahapotta

    Mahapotta

    @mahapotta-Ta95ZE
    Updated: May 20, 2017
    Views: 1.2K
    #include<stdio.h>
    int main()
    {
        int rent,year,incre,a,s;
        printf("Rent Per month\n");
        scanf("%d",&rent);
        puts("INCREAMENT\n");
        scanf("%d",&incre);
        printf("HOW MANY YEARS\n");
        scanf("%d",&year);
        for(a=1;a<=year;a++)
        {
     printf("The rent for year %d is %d\n",a,rent*12);
            rent=rent+incre;
        }
    }
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Neeraj Sharma

    MemberMay 21, 2017

    Well is this a question or information? The program looks fine to me
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register