Computer Science, asked by PromitDas9392, 9 months ago

2. Write a program to print name, class and roll number.

Answers

Answered by Sd12365
5

Answer:

class program

{

public static void main(String args[ ])

{

int a;

int b;

int c;

System.out.println("Name: "+a);

System.out.println("Class: "+b);

System.out.println("Roll number : "+c);

}

}

I hope it helps you....

please mark it as brainliest.....

Answered by Anonymous
12

Answer:

Hi...

It's a python code..

Explanation:

Name=str (input ( "enter the name"))

Class=str(input(" enter the class"))

Roll=int (input ("enter the roll no. "))

print (Name)

print (Class)

print (Roll)

Hope it helps you

Please mark brainliest

Similar questions