tim so cac ki tu cua xau

/*tim so ki tu cua xau*/

#include<stdio.h>

#include<conio.h>

#include<math.h>

#include<string.h>

int main()

{

    char xau[100];

    printf("nhap va 1 xau ki tu ");

    gets(xau);//gets dung de nhap chuoi,co the dung scanf nhung khi do khong nhap dc dau cach

    t=strlen(xau);//strlen(x):ham tra gia tri la do dai chuoi~ x

    printf("chuoi vua nhap co %d ki tu",t);

    getch();

    return 0;

}

//ki tu tinh ca so lan chu cai                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: