pls pls answer this don't spam
pls pls don't spam or report my question correct answer will be marked as brainlist ..
Attachments:
Answers
Answered by
1
Answer:
1.
class pattern1
{
public static void main(String args[]){
for(int i=100; i<=1; i-=3){
System.out.print(i+" , ");
}
}
}
2.
class pattern2
{
public static void main(String args[]){
for(int i=1; i<=10; i++){
System.out.print((i*10)+" , ");
}
}
}
NB the program are written in BlueJ environment
Answered by
0
Answer:
Explanation:
2
#include<stdio.h>
void main()
{
int i, N;
printf("Enter N:");
scanf("%d", &N);
for(i=1; i<=N; i++)
{
printf("%d ",i*10);
}
}
1 class pattern1
{
public static void main(String args[]){
for(int i=100; i<=1; i-=3){
System.out.print(i+" , ");
}
}
}
Similar questions