11111 2222 333 44 5
main() { int i,j,k; for(i=5,k=1;i>0,k<6;i--,k++) { for(j=i;j>0;j--) { printf("%d ",k); } printf("\n"); } }
#include<stdio.h> main() { int i,j; for(i=1;i<=5;i++) { for(j=5;j>=i;j--) { printf("%d ",i); } printf("\n"); } }
input: one two three
output: three two one
struct marks { int a:1; int b:2; }; int main() { struct marks obj={1,6}; printf("%d %d\n",obj.b,obj.a); }
1*8+1= 9 12*8+2=98 123*8+3=987 1234*8+4=9876 12345*8+5=98765 123456*8+6=987654 1234567*8+7=9876543 12345678*8+8=9876543 2 123456789*8+9=987654 321