Money in piggy bank


#include<stdio.h>
int main()
{
    int one , five , ten , total ;

    printf(" Enter the total number of ten rs coins : ");
    scanf(" %d",&ten);

    printf(" Enter the total number of ten rs coins : ");
    scanf(" %d",&five);

    printf(" Enter the total number of one re coins : ");
    scanf(" %d",&one);

    total = (10*ten) + (5*five) + (1*one);


    printf(" The total amount : %d ", total);

    return 0;
}



OUTPUT:

Enter the total number of ten rs coins : 1

Enter the total number of ten rs coins : 4

Enter the total number of ten rs coins : 10

Enter the total number of ten rs coins : 40


For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-

For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/

Post a Comment

0 Comments