>>23 正直すまんかった。 (((A nand B) nand A) nand ((A nand B) nand B)) nand (((A nand B) nand A) nand ((A nand B) nand B)) だ。一時変数使えばもう下記のように見やすくかける C = ((A nand B) nand A) D = ((A nand B) nand B) E = C nand D Anser = E nand E
#include<stdio.h> #include<math.h> #define n 100 int main ( ) { float x, sum; int i; sum = 0.0; x = 1.0/n; for (i=0, i<n, i++) sum += x; if (sum == 1.0){ printf ("sum is 1.0\n"); }else{ printf ("sum is not 1.0\n"); } return 0; }