Invitation to Attend “Connect, Simulate and Innovate using Arduino on Cloud”, an awareness programme
If you are not an organiser or invigilator of the Subscribed college, please register using this Google form
#include<stdio.h>int main(){ float number, square; printf("Please Enter any integer Value:); scanf("%f", &number); square number number; printf("square of a given number %.2f is =%.2f", number, square); return 0;}ByPooja.N.LECE departmentIRTT
Program
#include<stdio.h>int main( ){ int a,b; int diff; printf("Enter first number :"); scanf("%d",&a); printf("Enter second number :"); scanf("%d",&b); if(a>b) diff=a-b; else diff=b-a; printf("\n Difference between %d and %d is=%d",a,b,diff); return 0;}ByKeerthi vennila SEce departmentIrtt
#include <stdio.h>int main(){ int a,b; int diff; printf("Enter first number: "); scanf("%d",&a) printf("Enter second number: "); scanf("%d",&b) if( a>b ) diff=a-b; else diff=b-a; printf("\n Difference between %d and %d is = %d", a, b, diff); return 0;}BYShamraj Babu.TECE DepartmentIRTT
#include <stdio.h>int main(){ int a,b; int diff; printf("Enter first number: "); scanf("%d",&a); printf("Enter second number: "); scanf("%d",&b); if( a>b) diff=a-b; else diff=b-a; printf("\nDifference between %d and %d is = %d", a,b,diff); return 0;}By M. Bala priyadharshini ECE department IRTT
#include<stdio.h>int main( ){ int a,b; int diff; printf("Enter first number :"); scanf("%d",&a); printf("Enter second number :"); scanf("%d",&b); if(a>b) diff=a-b; else diff=b-a; printf("\n Difference between %d and %d is=%d",a,b,diff); return 0;}
Why is the following code wrong? Why can't the main function return float data type? What to do if we have to find the difference between two floating numbers?Please explain.#include <stdio.h>void difference(float a, float b){ float c = a-b; printf("The difference between x and y is %f\n", c);}float main(){ float x,y; printf("Enter the number 1:"); scanf("%f", &x); printf("Enter the number 2:"); scanf("%f", &y); difference(x,y); return 0;}
What is the difference between a global declaration and Extern. How it differs as both does the same operation
what is the use of namespace in scope of variables?
121 visits
Outline:वेरियेबल् इत्यस्य स्कोप् -पीठिका -वेरियेबल् डिक्लेर् करणाय सिण्टेक्स् --तद्यथा: data-type var-name; - वेरियेबल् इनिशियलैस् करणाय सिण्टेक्स् --तद्यथा: data-type var-name = value; -वेरियेबल् इत्यस्य स्कोप् -ग्लोबल् वेरियेबल् -लोकल् वेरियेबल् -दोषाः (Error)
वेरियेबल् इत्यस्य स्कोप् -पीठिका -वेरियेबल् डिक्लेर् करणाय सिण्टेक्स् --तद्यथा: data-type var-name; - वेरियेबल् इनिशियलैस् करणाय सिण्टेक्स् --तद्यथा: data-type var-name = value; -वेरियेबल् इत्यस्य स्कोप् -ग्लोबल् वेरियेबल् -लोकल् वेरियेबल् -दोषाः (Error)
Show video info
Pre-requisite