+ 2
Guys how to make this program?
1234 1234 1234 1234 1234 1234
4 ответов
+ 3
class ClassName {
public static void main(String[] args) {
for (int s = 0; s <= 3; s++) {
for (int t = 1; t <= s; t++) {
System.out.print("1234 ");
}
System.out.println("");
}
}
}
In Java. :)
+ 1
that's for c++
#include<iostream>
using namespace std;
int main()
{
for (int i = 1; i <= 3; i++)
{
for (int j = 1; j <= i; j++)
{
cout << "1234";
}
cout << endl;
}
system("pause");
return 0;
}
+ 1
This is for c
#include <stdio.h>
void main()
{
int a,b,c;
for(a=1;a<=3;a++)
{
for(b=1;b<=a;b++)
{
printf("1234 ");
}
printf("\n");
}
}
+ 1
it is in java😅😅😅