Search found 2 matches

by Ianchen
Sun Oct 03, 2004 9:29 pm
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 15343

[c]#include<stdio.h>
#include<string.h>
#include <stdlib.h>

char a[100],*b[20],c[20][20],d[20];
int len1,len2,i,j,max,templen;
char temp[20];

void mul()
{
int carry,temp1,i,j,k;
char temp2;
for (j=0;j<len2;j++)
{
carry=0;
for (i=0;i<len1;i++)
{
if (c[1][j]!='0')
{
temp1=((c[0][i]-48)*(c ...
by Ianchen
Sun Oct 03, 2004 6:35 pm
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 15343

338 WA I try many time to solve it ,but can't

[c] #include<stdio.h>
#include<string.h>
#include <stdlib.h>

char a[100],*b[2],c[20][20],d[20];
int len1,len2,i,j,max,templen;
char temp[20];

void mul()
{
int carry,temp1,i,j,k;
char temp2;
for (j=0;j<len2;j++)
{
carry=0;
for (i=0;i<len1;i++)
{
if (c[1][j]!='0')
{
temp1=((c[0][i]-48)*(c ...

Go to advanced search