Answer to Question #307270 in Visual Basic for Ekay

Question #307270

1. Three Char Apart



by CodeChum Admin




Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let’s try doing that here in C, shall we?




Input




1. First character




2. Second character




Output




The first line will contain a message prompt to input the first character.



The second line will contain a message prompt to input the second character.



The succeeding lines contain the 2 characters separated by dots.

1
Expert's answer
2022-03-07T10:27:04-0500






#include <stdio.h>
#include <stdlib.h>


int main(){
	char character1,character2;
	scanf("%c",&character1);
	scanf("%c",&character2);
	scanf("%c",&character2);




	printf("%c.%c\n",character1,character2);
	getchar();
	getchar();
	return 0;
}

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