Charles? *Text[]? =? {"Exit",? The sum of two numbers,
"the difference between two numbers" and "the product of two numbers",
"Quotient of multiplication of two numbers"};
int? Major (invalid)
{
Double? n 1,? n2,? Results;
int? Choose;
Printf ("Please enter two real numbers:");
scanf("%lf%lf ",& ampn 1,? & ampN2);
while( 1)
{
for(int? Me? =? 1; ? Me? & lt? sizeof(Text)/sizeof(char? *); ? i++)
Printf("%d.%s%s\n ",I,? "Output" text [i]);
printf("5。 %s\n ",text[0]);
Printf ("Please enter your choice:?" );
Scanf("%d ",& select);
If (choose? ==? 5)
{
Printf ("Quit closing program \ n");
Return? 0;
}
If (choose? & lt? 0? ||? Choice? & gt? 4)
{
Printf ("Sorry, this option is not available \ n");
Continue;
}
Switch (selection)
{
Case? 1:
{
The result? =? n 1? +? N2;
Break;
}
Case? 2:
{
The result? =? n 1? -? N2;
Break;
}
Case? 3:
{
The result? =? n 1? *? N2;
Break;
}
Case? 4:
{
The result? =? n 1? /? N2;
Break;
}
}
printf("%s%s:%.2lf\n ",? Text [selection],? "For"? Results);
}
Return? 0;
}