My Opera is closing 1st of March

you made create the future!!!

bai 3

/* Bai tap 9_1 - Dem so lan xuat hien cac ky tu trong chuoi */
#include <stdio.h>
#include <ctype.h>

void main()
{
char chuoi[80];
int i = 0, count = 0;

printf("\nNhap vao mot chuoi bat ky : ");
gets(chuoi);

while (chuoi != 0)
{
if (isalpha(chuoi[i++]))
count++;
}

printf("So ky tu trong chuoi = %d", count);
getch();
}

công cụ lập trình

Comments

cndt Monday, January 7, 2008 3:52:06 PM

oitủtuntuut i

Write a comment

New comments have been disabled for this post.

February 2014
M T W T F S S
January 2014March 2014
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28