USING C
#include<stdio.h>
#include<conio.h>
int main()
{
int z;
printf("Enter the number you want but don't say it to others:");
scanf("%d",&z);
printf("I can say the number you input without knowing it :-P \n");
printf("The number is: %d \n", z);
printf("lol :-P :-P ");
return 0
}
USING JAVA
import java.util.Scanner;
{
static Scanner sc= new Scanner(System.in);
public static void main(String[] args)
{
int result;
System.out.print("Enter the number you want but don't say it to others:");
result= sc.nextInt();
System.out.print("I can say the number you input without knowing it :-P \n");
System.out.println("The number is: " + result);
System.out.print("\n lol :-P :-P :");
}
}
#include<stdio.h>
#include<conio.h>
int main()
{
int z;
printf("Enter the number you want but don't say it to others:");
scanf("%d",&z);
printf("I can say the number you input without knowing it :-P \n");
printf("The number is: %d \n", z);
printf("lol :-P :-P ");
return 0
}
USING JAVA
import java.util.Scanner;
{
static Scanner sc= new Scanner(System.in);
public static void main(String[] args)
{
int result;
System.out.print("Enter the number you want but don't say it to others:");
result= sc.nextInt();
System.out.print("I can say the number you input without knowing it :-P \n");
System.out.println("The number is: " + result);
System.out.print("\n lol :-P :-P :");
}
}






0 comments:
Post a Comment