if a five-digit number is input through the keyboard, draw a flowchart to print code a as 1st three digits and code b as last two digits. example: input: 12345 code a: 123 code b:45
1
Expert's answer
2021-10-02T10:55:57-0400
#include<stdio.h>intmain(){
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);
return0;
}
"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