-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchatbot.java
More file actions
22 lines (22 loc) · 826 Bytes
/
chatbot.java
File metadata and controls
22 lines (22 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.*;
class chatbot
{
public static void main(String args[])
{
String a,b,c,d,e,f;
Scanner sc=new Scanner(System.in);
System.out.println("HELLO I AM JAVA-BOT, what's your name?");
a=sc.nextLine();
System.out.println("nice to know your name, but how are you?");
b=sc.nextLine();
System.out.println("what food do you like the most?");
c=sc.nextLine();
System.out.println("what's your favourite colour?");
d=sc.nextLine();
System.out.println("Do you know I am coded in JAVA");
e=sc.nextLine();
System.out.println("Nice to talk to you. Sadly I am coded till this much & thanks to talk with me");
f=sc.nextLine();
System.out.println("MADE BY SOHAM PAL/electroiscoding in github");
}
}