Search found 1 match

by top90233a
Tue Feb 19, 2013 8:18 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 101941

10035 wrong answer

wrong answer... plz help

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

int main(){

char int1[10],int2[10];
char tmp1[10],tmp2[10];

int i;

int carry;

int carrysum;

char tmp;

memset(tmp1,'0',10);
memset(tmp2,'0',10);

while(scanf("%s %s",tmp1,tmp2)==2){

if(strcmp(tmp1 ...

Go to advanced search