Hello!
I am working on some code for a program that squares,sums and divides 3 numbers:
int num,sq,sumd;
int a;
int b;
int c;
printf ("Please enter a positive integer for a/n"); //input
scanf ("%d", &a);
printf ("Please enter a positive integer for b/n"); //input
scanf ("%d", &b);
printf ("Please enter a positive integer for c/n"); //input
scanf ("%d", &c);
sq=(num*num);
printf("the square of %d is %d",num,sq);
return 0;
}
int num,sq,sumd;
printf("number here");
scanf("%d",&num);
sumd=sum(num);
printf("sum here %d",sumd);
return 0;
}
have not done the subtract yet? I also need a results!