+ 2

Guys how to make this program?

1234 1234 1234 1234 1234 1234

16th Oct 2017, 10:46 AM
SarvarCoder
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. :)
16th Oct 2017, 12:13 PM
LunarCoffee
LunarCoffee - avatar
+ 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; }
16th Oct 2017, 10:50 AM
Victoria Kim
Victoria  Kim - avatar
+ 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"); } }
16th Oct 2017, 11:39 AM
NALLAPALEM NEERAJ SRINIVAS
+ 1
it is in java😅😅😅
16th Oct 2017, 11:44 AM
SarvarCoder