Entering edit mode
13.1 years ago
Ankita
▴
70
how to find the number of codons in a sequence by c programing
how to find the number of codons in a sequence by c programing
To help you on the way, you can figure the rest out yourself:
#include <stdio.h>
#include <string.h>
int main()
{
char sequence[] = "TAGAGCGTAGCGACGTACTGATC";
printf("Amount of codons: %d\n", (int)strlen(sequence)/3);
}
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Dear ankita: The way the question is currently posed, noone will answer it. You need to provide at least (1) a description of your problem, (2) how you tried to solve it yourself already, and (3) where and how you are stuck.