#include
Share:
#include int main () { int a,b,c,j,i; while(scanf(“%d”,&a)==1) { c=1; for(i=1;i<=a;i++) { scanf("%d",&b); printf("Case : %d\n",c); for(j=1;j<=10;j++) printf("%d*%d=%d\n",b,j,b*j); c++; } } return 0; }
You must be logged in to post a comment.
100% ei program vul
1st input- test case
2nd- give input for multiplication table
#include
int main () {
int a,b,c,j,i;
while(scanf(“%d”,&a)==1)
{
c=1;
for(i=1;i<=a;i++)
{
scanf("%d",&b);
printf("Case : %d\n",c);
for(j=1;j<=10;j++) printf("%d*%d=%d\n",b,j,b*j); c++;
}
}
return 0;
}
int main ()
{
int x,y;
printf(“Enter the value x and y : “);
scanf(“%d%d”,&x,&y);
if (x>y)
printf(“The value of x is %d grater than %d small”, x, y);
else
printf(“The value of y is %d grater than %d “, y, x);
getch();
}