A

@anmoll

hello pattern

C
2 years ago
#include <stdio.h> int main() { printf(" H E L L O\n"); printf(" E L\n"); printf(" L L\n"); printf(" L E\n"); printf(" O L L E H\n");

plus 4

C
2 years ago
#include<stdio.h> int main(){ int a,i=1; printf("enter a number"); scanf("%d", &a); if (a<99) { for(i=1;i<5;i++)

area of traingle

C
2 years ago
#include<stdio.h> #include<math.h> int main() { float a,b,c,s,r; printf("length of side a"); scanf("%f", &a); printf("lenght of side b");

root

C
2 years ago
#include<stdio.h> #include<math.h> int main() { float a,b,c,r1,r2; printf("enter the number a(co-ordinate of x^2):"); scanf("%f", &a); printf("enter the number b(co-ordinate of x):");

matrix

C
2 years ago
#include <stdio.h> int main() { int r,c,a[10][10],b[10][10],sum[10][10],i,j; printf("enter number of r(between 1 and 10):"); scanf("%d", &r); printf("enter number of c(between 1 and 10):"); scanf("%d", &c);

sum

Assembly
2 years ago
section .data msg db "The sum is:", 0ah msglen equ $-msg num1 db 11H num2 db 22h section .bss sum resb 1 temp resb 1 section .text

sum of no.s

Assembly
2 years ago
section .data msg db 'The sum is:', 10 msglep equ $-msg num1 db 11H num2 db 22H section .bss sum resb 1 temp resb 1

enter name

Assembly
2 years ago
section .data msg db "Enter Name", 0ah msgLen equ $-msg %macro wr 4 mov rax,%1 ; read syscall mov rdi,%2 ; keyboard mov rsi,%3 ;variable mov rdx,%4 ; variable length in bytes syscall %endmacro

greatesti

C
2 years ago
#include<stdio.h> int main() { int a,b,c; printf("enter the value of a"); scanf("%d", &a); printf("enter the value of b"); scanf("%d", &b); printf("enter the value of c"); scanf("%d", &c);

assignment1

Assembly
2 years ago
section .data name db 'Input your name',10 nameLen equ $-name section .bss msg1 resb 5 section .text global _start _start:

Sum

Assembly
2 years ago
section .data msg db 'The sum is:',10 msgLen equ $-msg num1 db 30H num2 db 15H section .bss sum resb 1 temp resb 1

input name

Assembly
2 years ago
section .data name db "inpput your name", 0ah namelen equ $-name section .bss msg1 resb 30 msg1len equ $-msg1 section .text global _start _start: