Answer to Question #237548 in C for Supriya

Question #237548
In s bank there are two types of transactions credit and debit
1
Expert's answer
2021-09-15T17:24:11-0400
#include<stdio.h>
#include <string.h>
int main()
{
	
		char creditID[10];
		char debitID[10];
		//char s[20];
		int s;
	
		printf("Enter credit transaction id: ");
		fgets(creditID, 10, stdin);
		printf("Enter debit transaction id: ");
		fgets(debitID, 10, stdin); 
		printf("Enter the number of transactions to perform:");
		scanf("%d",&s);
		printf("Concatenated string:%s",strcat(creditID,debitID));
	    for(int i = 0; i < s; i++) {    
            if(s != ' ')    
                printf("") ;   
        }
        printf("Count= %d",s);
	}
	

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS