We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2
#include <stdio.
h> #include <string.h>
int F(char symbol) {
switch (symbol) { case '+': case '-': return 2; case '*': case '/': return 4; case '^': case '$': return 5; case '(': return 0; case '#': return -1; default: return 8; } }
int G(char symbol) {
switch (symbol) { case '+': case '-': return 1; case '*': case '/': return 3; case '^': case '$': return 6; case '(': return 9; case ')': return 0; default: return 7; } }