Search found 2 matches

by LZ
Sun Apr 15, 2007 8:17 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 102585

[quote="ranacse05"]LZ why you take char when you can use long long int???[/quote]

I'm just curious. Actually, i made another program using long but i still got WA. Here's the codes. Please check it if you're not busy. thx alot.

#include<cstdio>

int main()
{
long int a, b, input1, input2;
int ...
by LZ
Sun Apr 15, 2007 7:54 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 102585

I've been trying so many times but i still got WA. Please help me to find the mistakes.

#include<cstdio>
#include<cstdlib>
#include<cstring>

int main()
{
char a[15], b[15];
unsigned long int c=1,d=1;
int len, p, jml=0,ctr;



while(1)
{
ctr=0;

scanf("%s %s",&a ,&b);
sscanf(a,"%ld",&c ...

Go to advanced search