[Logo] Форум DL
  [DL]  На главную страницу 
Индекс форума ->Учебный процесс ГГУ/СШ 27 ->Проектирование цифровых систем 1, 2
Автор Сообщение
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char __bits(8) str[128];
int __out __bits(8) res = 0;

void main() {
int resC = 0;
int resD = 0;
for (int i = 0; i != '#'; i++) {
if (0 < str[i] < 9) {
resD++;
}
if ('a' < str[i] < 'z') {
resC++;
}
}
res = resC + resD;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char __bits(8) str[256];
int __out __bits(8) res = 0;

void main() {
int resDigit = 0;
int resChar = 0;
for (int i = 0; i != '#'; i++) {
if (0 < str[i] < 9) {
resDigit++;
}
if ('a' < str[i] < 'z') {
resChar++;
}
}
res = resDigit + resChar;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];

int __out __bits(8) res;

void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; str[i]!='#'; i++) {
if (str[i] > '0' && str[i] < '9'){
k++;
}
if (str[i] > 'a' && str[i] < 'z'){
k++;
}
}
res = k;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];

int __out __bits(8) res;

void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; in_str[i]!='#'; i++) {
if (in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char in_str[128];

int __out __bits(8) res;

void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; in_str[i]!='#'; i++) {
if (in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char in_str[128];

int __out __bits(8) res;

void main()
{
int i = 0;
int __bits(8) k = 0;
for (int i=0; in_str[i]!='#'; i++) {
if ((in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char in_str[100];

int __out __bits(8) res;

void main()
{
int i = 0;
int k = 0;
while(in_str[i]!='#'){
if ((in_str[i] > '0' && in_str[i] < '9') || ((in_str[i] > 'a' && in_str[i] < 'z')){
k++;
}
}
res = k;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128]
unsigned __out __bits(8) res;
void main(){
int __bits(16) cnt = 0;
for(int i = 0; str[i] != '#';i++){
char c = str[i];
if((c>= '0' && c <= '9') || (c >= 'a' && c <= 'z')){
cnt++;
}

}

res = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];
unsigned __out __bits(16) res;

void main()
{
int __bits(16) cnt = 0;

for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}

res = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];
unsigned out bits(16) res;

void main()
{
int __bits(16) cnt = 0;

for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}

res = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];
unsigned __out __bits(16) res;

void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char in_str[128];
unsigned __out __bits(16) res;

void main()
{
int __bits(16) cnt = 0;
for (int i = 0; in_str[i] != '#'; i++)
{
char c = in_str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char IN_str[128];
unsigned __out __bits(16) res;

void main()
{
int __bits(16) cnt = 0;
for (int i = 0; IN_STR[i] != '#'; i++)
{
char c = IN_STR[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
RES = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char IN_STR[128];
unsigned __out __bits(16) RES;

void main()
{
int __bits(16) cnt = 0;
for (int i = 0; IN_STR[i] != '#'; i++)
{
char c = IN_STR[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
RES = cnt;
}
Михаил Долинский

Темы: 2184
Сообщений: 52607

Мой профиль
char str[128];

int __out __bits(8) res;

void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++) {
if ((str[i] >= '1' && str[i] <= '9') || (str[i] >= 'a' && str[i] <= 'z')) {
cnt++;
}
}
res = cnt;
}
 
Индекс форума ->Учебный процесс ГГУ/СШ 27 ->Проектирование цифровых систем 1, 2
Time:0,013