SolutionofRPLA(1) - Codes of Report Problem and Lab...

Info icon This preview shows pages 1–4. Sign up to view the full content.

Codes of Report Problem and Lab Assessments: Experiment#01 Report Problem 1: #include<stdio.h> void main(){ int a,b,c,d; scanf(“%d %d %d %d”,&a,&b,&c,&d); printf(“sum=%f\n”,(float) a+b+c+d); printf(“average=%f”,(float) ((a+b+c+d)/4)); } Report Problem 2: The output is -1 as difference between ASCII values of ‘b’ and ‘c’ are -1. Report Problem 3: #include<stdio.h> void main(){ printf(“Navid Ibtehaj Nizam\n”); printf(“Lecturer\n”); printf(“Department of EEE\n”); printf(“United International University\n”); printf(“Lecturer\n”); printf(“[email protected]”); }
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.