Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
opo sir, output po yanOut put mo yan master
gumawa lang daw po kami ng for loop na ganyan yung magiging outputWala ka bang question para may ma gets ko
#include <iostream>
using namespace std;
int main() {
int a, b, c;
for(a=1;a<=20;a++){
cout<<a<<" ";
b=a%5;
c=a;
while(c<10){
cout<<" ";
c=10;
}
while(b==0){
cout<<endl;
b=1;
}
}
return 0;
}
Hello sir! Salamat po, gumana!C++:#include <iostream> using namespace std; int main() { int a, b, c; for(a=1;a<=20;a++){ cout<<a<<" "; b=a%5; c=a; while(c<10){ cout<<" "; c=10; } while(b==0){ cout<<endl; b=1; } } return 0; }