#include int main(){ int i; for(i = 1; i <= 10; i = i + 1){printf("%d %d\n", i, i * i);}return 0;}
how to make a NUMBER TRIANGLE FROM 1 TO 10 1 2 3 4 5 6 7 8 9 10
for(i=1;i<=10;i++)Repeat same for j
How can i form 1 2 3 4 5 47 8 9 10
how can i form ***1*****2*3***4*5*6*7*8*9*10
how can i print1 to 100 in 10 subsequent pages
#include#includevoid main(){ int i,a,j,k=1; for(i=1;i<=4;i++) { for (a=1;a<=(-1*(i-5));a++) printf(" "); for (j=1;j<=i;j++) { printf("%d ",k); k++; }printf("\n");} getch();}
Flow chart for the square and cube of 1 to 10 numbers
Write a program that prompts the user to enter a number n, then prints all the evensquares between 1 and n.
how to make a NUMBER TRIANGLE FROM 1 TO 10
ReplyDelete1
2 3
4 5 6
7 8 9 10
for(i=1;i<=10;i++)
DeleteRepeat same for j
How can i form
ReplyDelete1
2 3
4 5 4
7 8 9 10
how can i form
ReplyDelete***1***
**2*3**
*4*5*6*
7*8*9*10
how can i print
ReplyDelete1 to 100 in 10 subsequent pages
#include
ReplyDelete#include
void main()
{
int i,a,j,k=1;
for(i=1;i<=4;i++)
{
for (a=1;a<=(-1*(i-5));a++)
printf(" ");
for (j=1;j<=i;j++)
{
printf("%d ",k);
k++;
}
printf("\n");
}
getch();
}
Flow chart for the square and cube of 1 to 10 numbers
ReplyDeleteWrite a program that prompts the user to enter a number n, then prints all the even
ReplyDeletesquares between 1 and n.