Search found 1 match

by Riyal
Sun Nov 15, 2015 3:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10093 - An Easy Problem!
Replies: 52
Views: 23288

10093

this code shows WA...can you please help me finding the mistake?Thanks in advance




#include <iostream>
#include <string.h>
#include <stdio.h>

using namespace std;

int digit(char *n, int i)
{
//negative sign
if (n[i] == '-' || n[i] == '+' || n[i] == ' ')
return 0;

// 0 to 9
if (n[i] >= '0 ...

Go to advanced search