1
リンクの写真にあるように、答えは正しく出ますが、方程式は間違っています。私は、コードに新しいですことに注意してください、そして、それは単純なミス私の電卓のようなプログラムに乱数が現れる
https://pastebin.com/tVuuiNic(CODE TO LINK)
if ((operation_type == 'A') || (operation_type == 'a'))
{
printf("\n\nType the numbers you wish to have added.\n\n");
scanf("%d %d",&add_a, &add_b );
printf("\n\n%d + %d = %d", &add_a, &add_b, func_add(add_a,add_b));
}
ところで 'のscanf( "%sの"、&operation_type);' - > 'のscanf( "%cの"、&OPEをration_type); ' – BLUEPIXY
そして' if..if..if..ifse'-> 'if..else if..else if..else if..else' – BLUEPIXY