Home
BBA - CA ( BCA )
_FY BBA-CA ( BCA )
_SY BBA-CA ( BCA )
_TY BBA-CA ( BCA )
Viva/MCQs
Interview Practice
Question Bank
Donate Us!
Slip 8 - A) A cashier has currency notes of denomination 1, 5 and 10. Write a C program to accept the withdrawal amount from the user and display the total number of currency notes of each denomination the cashier will have to give.
Solution:
#include<stdio.h>
int main()
{
int w,x,y,z;
printf("enter withdrow amount : ");
scanf("%d",&w);
x=w/10;
w=w%10;
y=w/5;
w=w%5;
z=w;
printf("note of 10 : %d\n",x);
printf("note of 5 : %d\n",y);
printf("note of 1 : %d\n",z);
}
Post a Comment
0 Comments
Recent Posts
4/recent/post-list
Social Plugin
Popular Posts
602 Software Testing | 2 Marks Questions with Answer
July 27, 2022
602 Software Testing | 4 Marks Questions with Answer
July 27, 2022
604 Android Programming | 2 Marks Questions with Answer
August 05, 2022
Categories
Algorithms & Data Structure
1
Database
1
Interview Question
10
Programming Language
7
Question Bank
28
VIVA / MCQ with Answer
10
Web Development
4
Monthly Blog
April
4
November
1
August
7
July
33
June
3
May
1
March
1
February
3
Tags
Algorithms & Data Structure
Database
Interview Question
Programming Language
Question Bank
VIVA / MCQ with Answer
Web Development
0 Comments