Dec 01 2012, 10:25 AM
Spartacus, post: 81083, member: 1060 Wrote:why not just define the number variables asI was thinking like the same.........
float m1,m2,m3,m4,m5,per;
Double post
Thanks Bison it worked AND NOW A BIG SALUTE TO PROGRAMMING KING!!
Double post
Okay guys moved on to another problem could you get me outta here??
THE CODE:
Code:
#include <stdio.h>
int main()
{
char another;
int num;
do
{
printf("Enter a number");
scanf("%d",&num);
printf("Square of %d is %d\n",num,num*num);
printf("Want to enter another number? y/n");
scanf("%c",&another);
} while(another=='y');
return 0;
}
Code:
printf("Enter a number");
scanf("%d",&num);
printf("Square of %d is %d\n",num,num*num);
printf("Want to enter another number? y/n");
scanf("%c",&another);
Code:
printf("Square of %d is %d\n",num,num*num);
I mean the square PROGRAM STOPS!