Q2. If a five-digit number is input through the keyboard, Draw a flowchart to print code A as I three digits and code B as last two digits.
Example: Input: 12345
Code A: 123
Code B:45
1
Expert's answer
2021-09-29T18:43:52-0400
#include <stdio.h>
int main()
{
int n, a, b;
printf("Input: ");
scanf("%d", &n);
b = n % 100;
a = n / 100;
printf("Code A: %d", a);
printf("Code B: %d", b);
return 0;
}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment