write a program to print multiplication table of 5
Answers
Answered by
1
Answer:
Java
class table
{
public static void main()
{
for(int i=1; i <= 10; i++)
{
System.out.println("5 X "+i+" = "+(5*i));
}
}
}
Python
for h in range(1,11):
print("5 X",h, "=",(5*h))
C
#include <stdio.h>
int main()
{
for(int i=1; i <= 10; i++)
{
printf("5 X %d = %d",i, (i*5));
}
}
These 3 language are common in school time, that's why I have given answer in 3 language
Answered by
2
Question:-
➡ Write a program to print multiplication table of 5.
Program:-
This is written in Java.
class Print
{
public static void main(String args[])
{
for(int i=1;i<=10;i++)
System.out.print("5 x "+i+" = "+5*i);
}
}
Similar questions
Math,
1 month ago
Chemistry,
1 month ago
Social Sciences,
3 months ago
Math,
8 months ago
English,
8 months ago