Computer Science, asked by ayushjha5982, 1 day ago

WAP TO ASSIGN 9 TO A VARIABLE.CALCULATE AND PRINT IT’S SQUARE AND DOUBLE
IF YOU WILL GIVE CORRECT ANSWER I WILL MARK AS BRAINLIEST

Answers

Answered by samarthkrv
0

Answer:

// In java

import java.lang.Math;

class Brainly

{

public static void main(String[] args)

{

int x = 9;

System.out.println("Square is : " + (x*x));

System.out.println("Double is : " + (x*2));

}

}

// in c language

#include<stdio.h>

int main()

{

int x = 9;

printf("The square of the number is : %i" , (x*x));

printf("The double of the number is : %i" , (x*2));

return 0;

}

// mark as brainliest

Explanation:

Similar questions