Thanks a lot!! this is my last problem.. I was wondering if my code is right to printf the statement.. it doesn't work atm.
Code:
#include <stdio.h>int moleculeFound(float weight,int charge, int c, int h, int o, int n);
int main( ) {
int c, h, o, n, atom,amino =0, years = 0, charge = 0;
float weight;
c == 3, h == 7, n == 1, o == 2, weight == 89.0929f, charge = 0;
moleculeFound(weight, charge, c, h, o, n);
return 0;
}
int moleculeFound(float weight, int charge, int c, int h, int o, int n){
if ((c == 3) && (h == 7) && (n == 1) && (o == 2) && (weight == 89.0929f)){printf ("C:%d H:%d N:%d O:%d, weight:%.4f charge:%d", c, h, n, o, weight, charge);}
}