• + 0 comments

    int a; double b; char str[100],res[100]; scanf("%d",&a); scanf("%lf",&b); getchar(); //it is used to cosume previous newline from scanf fgets(str,sizeof(str),stdin); printf("%d\n",(a+i)); printf("%.1f\n",(b+d)); strcpy(res,s); strcat(res,str); printf("%s",res);