Created
January 26, 2019 07:51
-
-
Save koetoo/29c7afd4c594f1973a716e671d2cf0bb to your computer and use it in GitHub Desktop.
register
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<conio.h> | |
void G(char g){ | |
g='5'; | |
printf("%d",g); | |
} | |
int main(){ | |
char G='g';char S='s'; | |
char num[34]={0,0,0,0,0}; | |
printf("\n...REGISTER\n\n...Four bands color \n"); | |
printf("0.black 1.brown 2.red 3.orange 4.yellow\n5.green 6.blue 7.violence 8.gray 9.white\ng.gold and s.silver \n\n"); | |
printf("enter color number and gold or silver(enter g or s)\n"); | |
scanf("%s",num); | |
if(strlen(num)!=4){ | |
printf("wround type\n"); | |
}else{ | |
if(num[3]==G){ | |
G='5'; | |
printf("%c%c*10^%cR +-%cpers\n",num[0],num[1],num[2],G); | |
} | |
if(num[3]==S){ | |
S=10; | |
printf("%c%c*10^%cR +- %d pers\n",num[0],num[1],num[2],S); | |
} | |
printf("\nright\n"); | |
} | |
return 9; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment