have to write code that lets the user enter a 5 digit's number.
after that it must remove the 3th digit from the number and printf the rest of the number
this is what i written but it's not good , because it ask for evry digit individually .
Code:#include <stdio.h> #include <conio.h> void main() { clrscr(); int a,b,c,d,e; printf("Enter 5 digits number:\n"); scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); printf("After removing the 3th digit the number is:\n%d%d%d%d",a,b,d,e); getch(); }