electronic money by aways yare
TRANSCRIPT
EVCplus is a free electronic money transfer service introduced and operated by Somalia’s biggest telecommunication company, Hormuud.
EVC Plus is a unique option to transfer and receive mobile money. Now you can share mobile money as well as airtime between your friends and family, as you can send and receive mobile money through this option.
#include<stdio.h>
main()
{
int x,y,k,l,o,oo,n,m;
int p=4;
printf("EVC-PLUS\nfadlan soo geli pinkada\n");
scanf("%d",&y);
if(y==1234)
printf("EVC-PLUS\n1:itusi haraaga\n2:kaarka hadalka\n3:biil bixi\n4:u wareeji evc-plus\n");
else
printf("EVC-PLUS\nwan ka xunahay pinka aad gelisay waa qalad\n");
printf("dooro midka aad rabtid\n");
scanf("%d",&x);
if(y==1234)
Means to check the password that the user interred is right or wrong if the password is wrong the complier doesn’t let you to go inside of the code.
And the program can decide whether a user is allowed access to the program.
switch(x) { case 1: printf("EVC-PLUS\nharaagaagu waa $1200.000.");
break; case 2: printf("EVC-PLUS\nkaarka hadalka dooro\n 1:ku shubo
airtime\n 2:ugu shub airtime\n 3:ka bax\n"); scanf("%d",&k); if(k==1) printf("EVC-PLUS\ngeli lacga aad ku shubaneysid\n"); scanf("%d",&k); printf("EVC-PLUS\nwaxad ku shubatay%d$\n",k);
Switch case:
Checks the value of expression or variable against the list of cases.when the match is found the block of the code is executed associated with that case
break statement:
Takes the control out of the case and is optional,there is achance multiple blocksto be excuted.
if(k==2)
printf("EVC-PLUS\ngeli mobilka\n");
scanf("%d",&k);
printf("EVC-PLUS\ngeli lacgta\n");
scanf("%d",&k);
printf("EVC-PLUS\nma hubtaaa in aad ugu shubtidnumber%d\n 1:haa\n 2:maya\n",00);
scanf("%d",&k);
if(k==3);
printf("macsalaama");
break;
BREAK
Means the code to stop the program
By using switch
case 3: printf("EVC-PLUS\n bxi biiln\n 1:post paid\n 2:ku iibso\n 3:ka
bax\n"); scanf("%d",&l); if(l==1); printf("post paid\n1:ogow biilka\n 2:bixi biilka\n 3:kabax\n"); scanf("%d",&l); if(l==1) printf("ogow biilka\ndooro shirkada\n1-hormuud\n"); scanf("%d",&m); printf("ogow biilka\ndooro nooca biilka\n1-postpaid\n"); scanf("%d",&m); breaak:
case 4:
printf("EVC-PLUS\nu wareegi evc-plus\n geli moblka\n");
scanf("%d",&oo);
printf("geli lacagta");
scanf("%d",&n);
printf("EVC-PLUS\nma hubtain aad warejisid\n 1:haa\n 2:maya\n");
scanf("%d",&o);
if(o==1)
{
printf("EVC-PLUS\nwaxad u xawishay $%d numbarka %d haraagagu waa $ %d\n",n,oo,p-n);
break;
}
default :
("EVC-PLUS\nmacsalaama");}}
Default
Means to reject any number which is not the number that was agreed in if or switch