Search found 1 match
- Fri May 28, 2010 7:51 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10515 - Powers Et Al.
- Replies: 124
- Views: 45784
Re: 10515 - Power et al.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main ()
{
unsigned long l,s,q,t,n,c,i;
char x[2000],y[2000];
while (1)
{
q=0;
t=0;
l=0;
n=0;
c=0;
scanf("%s%s",x,y);
l=strlen(x)-1;
s=x[l];
c=atoi(y);
for (i=1;i<=2;i++)
{
if (i==1)
{
n=c%10;
q=q+n;
c=c/10;
}
else ...