try to make a simple cm to mm program, it works (sort of) but if someone can run this code for me and tell me where i went wrong it'll be greatly appreciated
Code:#include <stdio.h> #include <stdlib.h> int main() { int a,b; printf("1.enter CM\n "); printf("2.enter mm\n"); scanf("%d",&a); switch (a){ case 1: b=a*10; printf("%d mm ",b); break; case 2: b=a/10; printf("%d Cm",b); break; default: printf("Backup dancer!!!"); } return 0; }