Computer Science, asked by gt801956, 8 months ago

write a program to genarate the following out put 5,10,9 assign value 5 to a varible using assigment opratour = multiply it with 2 to genarate and subtract 1 to generate 9​

Answers

Answered by mn121
0

Since no particular programming language is mentioned, I am writing in Java.

public class program

{

public static void main(String arge[])

{

int a = 5,b,c;

b = a*2;

c = b-1;

System.out.println(a+","+b+","+c);

}

}

Hope it helps you...

Please mark it as brainliest...

^_^

Similar questions