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
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment