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
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
Math,
13 hours ago
Chemistry,
13 hours ago
Math,
13 hours ago
Physics,
1 day ago
Accountancy,
8 months ago