Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed why is this program not workig

0 votes
asked Mar 10, 2023 by ravishankar (270 points)
closed Mar 13, 2023 by Admin
#include<stdio.h>
int main ()
  {
      int a,b,c,d,e,f,g,h,i,j,k,l,m;
    printf("enter 12 values");
    scanf("%d %d %d %d %d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);
    m=a*b*c*d*e*f*g*h*i*j*k*l;
    printf("the mul of %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d is %d"a,b,c,d,e,f,g,h,i,j,k,l,m);
    return 99;
  }
closed with the note: answered

6 Answers

0 votes
answered Mar 10, 2023 by Shivakumar 2108 (140 points)
#include<stdio.h>
int main ()
  {
      int a,b,c,d,e,f,g,h,i,j,k,l,m;
    printf("enter 12 values");
    scanf("%d %d %d %d %d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);
    m=a*b*c*d*e*f*g*h*i*j*k*l;
    printf("after multipliction:%d",m);
    return 0;
  } you go with this code
0 votes
answered Mar 10, 2023 by Chandran Krishnamurthy (140 points)
comma (,) is missing after the " in 3rd from last line
0 votes
answered Mar 10, 2023 by Bisharath Abdul Khader (140 points)

You have an error in the following line of code

printf("the mul of %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d is %d"a,b,c,d,e,f,g,h,i,j,k,l,m);

you must put comma ',' to separate the print statement and the variables

edit : printf("the mul of %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d is %d",a,b,c,d,e,f,g,h,i,j,k,l,m);

0 votes
answered Mar 11, 2023 by SAI PUNEETH REDDY (140 points)

because in 9th line ,in printf use comma before a u will no errors and u will answer 

#include<stdio.h>
int main ()
  {
      int a,b,c,d,e,f,g,h,i,j,k,l,m;


    printf("enter 12 values");
    scanf("%d %d %d %d %d %d %d %d %d %d %d %d",&a,&b,&c,&d,&e,&f,&g,&h,&i,&j,&k,&l);
    m=a*b*c*d*e*f*g*h*i*j*k*l;
    printf("the mul of %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d and %d is %d",a,b,c,d,e,f,g,h,i,j,k,l,m);
    return 99;
  }

0 votes
answered Mar 12, 2023 by deepak-jadhav1 (140 points)

put , before a in 10th line 

0 votes
answered Mar 12, 2023 by Usha D (180 points)
%d"a, b... Wrong
%d",a, b... Right
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...