C++:
#include <iostream>
int main()
{
for(int i = 5; i > 0; --i) {
for(int j = i; j <= 5; ++j) {
std::cout << j << ' ';
}
}
return 0;
}
#include<stdio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
Cls
for i = 1 to 4
for j = 1 to i step 1
print i;
next
next
end
it generates a pattern
1
22
333
4444
#include <stdio.h>
int main (int argc, char** argv) {
printf ('1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1\n");
}
yes, use for loop;;
string s = "asdfqwer"; s = s.ToUpper(System.Globalization.CultureInfo.CurrentCulture);
echo 'print a pattern'
write a c program to display marks,total,average,grade using union
Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.
write a c program to accept a number and generate a square root cube and exponential values
Write your own prime number program and find out.
Write a program to convert a 2-digit BCD number into hexadecimal
yes, use for loop;;
You write the number and then follow it with the digits in reverse order.
string s = "asdfqwer"; s = s.ToUpper(System.Globalization.CultureInfo.CurrentCulture);
Yes, I can.
echo 'print a pattern'
write a c program to display marks,total,average,grade using union
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
you only need a pattern
It depends on the patterns.